
    ]                         S r SSKJr   " S S\R                  5      r " S S\5      r " S S\5      r " S	 S
\5      r " S S\5      r " S S\5      r " S S\5      r	 " S S\5      r
 " S S\5      rg)zExceptions for concept args.    )
exceptionsc                       \ rS rSrSrSrg)Error   z%Base class for errors in this module. N__name__
__module____qualname____firstlineno____doc____static_attributes__r       5lib/googlecloudsdk/command_lib/concepts/exceptions.pyr   r      s    -r   r   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )ConstraintError   z#Error when converting a constraint.c                 L   > [         [        U ]  SR                  X#X5      5        g )NzInvalid {} [{}] for [{}]. {})superr   __init__format)selfconcept_namekindstringmessage	__class__s        r   r   ConstraintError.__init__   s%    	/4)&--,	12r   r   r	   r
   r   r   r   r   r   __classcell__r   s   @r   r   r      s    +2 2r   r   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )
ParseError"   zError when parsing a concept.c                 J   > [         [        U ]  SR                  X5      5        g )NzFailed to parse [{}]. {})r   r#   r   r   r   r   r   r   s      r   r   ParseError.__init__%   s!    	*d$")),@Br   r   r   r!   s   @r   r#   r#   "   s    %B Br   r#   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )ValidationError*   z Error when validating a concept.c                 J   > [         [        U ]  SR                  X5      5        g )NzFailed to validate [{}]. {})r   r)   r   r   r&   s      r   r   ValidationError.__init__-   s!    	/4)%,,\CEr   r   r   r!   s   @r   r)   r)   *   s    (E Er   r)   c                       \ rS rSrSrSrg)InitializationError2   z;Error when a concept was initialized with an invalid value.r   Nr   r   r   r   r.   r.   2   s    Cr   r.   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )MissingRequiredArgumentError6   z-Error when a required concept can't be found.c                 J   > [         [        U ]  SR                  X5      5        g )Nz"No value was provided for [{}]: {})r   r1   r   r   r&   s      r   r   %MissingRequiredArgumentError.__init__9   s"    	
&6,33LJLr   r   r   r!   s   @r   r1   r1   6   s    5L Lr   r1   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )ModalGroupError>   z5Error when a modal group was not specified correctly.c                 H   > [         [        U ]  SR                  XUS95        g )NzAFailed to specify [{}]: {specified}: {missing} must be specified.)	specifiedmissing)r   r6   r   r   )r   r   r9   r:   r   s       r   r   ModalGroupError.__init__A   s&    	/4)	4	7	CEr   r   r   r!   s   @r   r6   r6   >   s    =E Er   r6   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )OptionalMutexGroupErrorH   z?Error when an optional mutex group was not specified correctly.c                 F   > [         [        U ]  SR                  XS95        g )NzCFailed to specify [{}]: At most one of {conflict} can be specified.conflict)r   r=   r   r   r   r   rA   r   s      r   r    OptionalMutexGroupError.__init__K   s"    	
!41M		02r   r   r   r!   s   @r   r=   r=   H   s    G2 2r   r=   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )RequiredMutexGroupErrorQ   z>Error when a required mutex group was not specified correctly.c                 F   > [         [        U ]  SR                  XS95        g )NzDFailed to specify [{}]: Exactly one of {conflict} must be specified.r@   )r   rE   r   r   rB   s      r   r    RequiredMutexGroupError.__init__T   s"    	
!41N		02r   r   r   r!   s   @r   rE   rE   Q   s    F2 2r   rE   N)r   googlecloudsdk.corer   r   r   r#   r)   r.   r1   r6   r=   rE   r   r   r   <module>rJ      s    # +.J .2e 2B BEe ED% DL5 LEe E2e 22e 2r   