
                         &   S 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	 " S S\5      r
 " S S\5      r " S S\5      r " S S\5      r " S S\5      rg)z=Errors used in the YAML API, which is used by app developers.c                       \ rS rSrSrSrg)Error   zBase datastore yaml error type. N__name__
__module____qualname____firstlineno____doc____static_attributes__r       /lib/googlecloudsdk/appengine/api/yaml_errors.pyr   r      s    'r   r   c                       \ rS rSrSrSrg)ProtocolBufferParseError   z Error in protocol buffer parsingr   Nr   r   r   r   r   r      s    (r   r   c                       \ rS rSrSrSrg)EmptyConfigurationFile   z'Tried to load empty configuration file.r   Nr   r   r   r   r   r      s    /r   r   c                       \ rS rSrSrSrg)MultipleConfigurationFile   z7Tried to load configuration file with multiple objects.r   Nr   r   r   r   r   r      s    ?r   r   c                       \ rS rSrSrSrg)AmbiguousConfigurationFiles#   zEBoth YAML and XML files exist for the same configuration information.r   Nr   r   r   r   r   r   #   s    Mr   r   c                       \ rS rSrSrSrg)UnexpectedAttribute'   z1Raised when an unexpected attribute is encounted.r   Nr   r   r   r   r   r   '       9r   r   c                       \ rS rSrSrSrg)DuplicateAttribute+   z1Generated when an attribute is assigned to twice.r   Nr   r   r   r   r    r    +   r   r   r    c                       \ rS rSrSrSrg)ListenerConfigurationError/   z?Generated when there is a parsing problem due to configuration.r   Nr   r   r   r   r#   r#   /   s    Gr   r#   c                       \ rS rSrSrSrg)IllegalEvent3   z=Raised when an unexpected event type is received by listener.r   Nr   r   r   r   r&   r&   3   s    Er   r&   c                       \ rS rSrSrSrg)InternalError7   z9Raised when an internal implementation error is detected.r   Nr   r   r   r   r)   r)   7   s    Ar   r)   c                   $    \ rS rSrSrS rS rSrg)EventListenerError;   a  Top level exception raised by YAML listener.

Any exception raised within the process of parsing a YAML file via an
EventListener is caught and wrapped in an EventListenerError.  The causing
exception is maintained, but additional useful information is saved which
can be used for reporting useful information to users.

Attributes:
  cause: The original exception which caused the EventListenerError.
c                     [        US5      (       a3  UR                  (       a"  [        R                  " U /UR                  Q76   O[        R                  U [	        U5      5        Xl        g) Initialize event-listener error.argsN)hasattrr0   r   __init__strcause)selfr4   s     r   r2   EventListenerError.__init__G   sC    uf%**nnT'EJJ' nnT3u:&Jr   c                 ,    [        U R                  5      $ )N)r3   r4   r5   s    r   __str__EventListenerError.__str__Q   s    tzz?r   )r4   Nr   r   r	   r
   r   r2   r9   r   r   r   r   r,   r,   ;   s    	r   r,   c                       \ rS rSrSrSrg)EventListenerYAMLErrorU   z0Generated specifically for yaml.error.YAMLError.r   Nr   r   r   r   r=   r=   U   s    8r   r=   c                   $    \ rS rSrSrS rS rSrg)
EventErrorY   zGenerated specifically when an error occurs in event handler.

Attributes:
  cause: The original exception which caused the EventListenerError.
  event: Event being handled when exception occured.
c                 :    [         R                  X5        X l        g)r/   N)r,   r2   event)r5   r4   rC   s      r   r2   EventError.__init__a   s    ,Jr   c                 P    U R                   < SU R                  R                  < 3$ )N
)r4   rC   
start_markr8   s    r   r9   EventError.__str__f   s    zz4::#8#899r   )rC   Nr;   r   r   r   r@   r@   Y   s    
:r   r@   N)r   	Exceptionr   r   r   r   r   r   r    r#   r&   r)   r,   r=   r@   r   r   r   <module>rJ      s    D
(I ()u )0U 0@ @N% N:% :: :H HF5 FBE B 49/ 9:# :r   