
                            S r SSKJr  SSKJr  SSKJ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.    )absolute_import)division)unicode_literals)
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__0   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)InitializationError5   z;Error when a concept was initialized with an invalid value.r
   Nr   r
   r   r   r1   r1   5   s    Cr   r1   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )MissingRequiredArgumentError9   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   r4   r   r   r)   s      r   r   %MissingRequiredArgumentError.__init__<   s"    	
&6,33LJLr   r
   r"   r$   s   @r   r4   r4   9   s    5L Lr   r4   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )ModalGroupErrorA   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   r9   r   r   )r   r   r<   r=   r    s       r   r   ModalGroupError.__init__D   s&    	/4)	4	7	CEr   r
   r"   r$   s   @r   r9   r9   A   s    =E Er   r9   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )OptionalMutexGroupErrorK   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   rD   r    s      r   r    OptionalMutexGroupError.__init__N   s"    	
!41M		02r   r
   r"   r$   s   @r   r@   r@   K   s    G2 2r   r@   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )RequiredMutexGroupErrorT   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.rC   )r   rH   r   r   rE   s      r   r    RequiredMutexGroupError.__init__W   s"    	
!41N		02r   r
   r"   r$   s   @r   rH   rH   T   s    F2 2r   rH   N)r   
__future__r   r   r   googlecloudsdk.corer   r   r   r&   r,   r1   r4   r9   r@   rH   r
   r   r   <module>rN      s    # &  ' *.J .2e 2B BEe ED% DL5 LEe E2e 22e 2r   