
    Ngy                        d Z  G d de          Z G d de          Z G d de          Z G d de          Z G d	 d
e          Z G d de          Z G d de          Z G d de          Z	 G d de          Z
 G d de
          Z G d dee          Z G d dee          Z G d dee          Z G d dee          Z G d dee          Z G d d ee          Z G d! d"e          Z G d# d$e          Zd%S )&z+Exceptions used in the google.auth package.c                   8     e Zd ZdZ fdZed             Z xZS )GoogleAuthErrorz&Base class for all google.auth errors.c                 |     t          t          |           j        |  |                    dd          }|| _        d S )N	retryableF)superr   __init__get
_retryable)selfargskwargsr   	__class__s       R/var/www/html/ai-engine/env/lib/python3.11/site-packages/google/auth/exceptions.pyr   zGoogleAuthError.__init__   s;    -ot$$-t44JJ{E22	#    c                     | j         S N)r	   r
   s    r   r   zGoogleAuthError.retryable   s
    r   )__name__
__module____qualname____doc__r   propertyr   __classcell__r   s   @r   r   r      sY        00$ $ $ $ $
   X    r   r   c                       e Zd ZdZdS )TransportErrorz:Used to indicate an error occurred during an HTTP request.Nr   r   r   r    r   r   r   r      s        DDDDr   r   c                       e Zd ZdZdS )RefreshErrorzMUsed to indicate that an refreshing the credentials' access token
    failed.Nr   r   r   r   r   r   #   s           r   r   c                       e Zd ZdZdS )UserAccessTokenErrorzCUsed to indicate ``gcloud auth print-access-token`` command failed.Nr   r   r   r   r!   r!   (   s        MMMMr   r!   c                       e Zd ZdZdS )DefaultCredentialsErrorz;Used to indicate that acquiring default credentials failed.Nr   r   r   r   r#   r#   ,   s        EEEEr   r#   c                       e Zd ZdZdS )MutualTLSChannelErrorzyUsed to indicate that mutual TLS channel creation is failed, or mutual
    TLS channel credentials is missing or invalid.Nr   r   r   r   r%   r%   0   s        6 6 6 6r   r%   c                   (    e Zd ZdZed             ZdS )ClientCertErrorz?Used to indicate that client certificate is missing or invalid.c                     dS )NFr   r   s    r   r   zClientCertError.retryable8   s    ur   N)r   r   r   r   r   r   r   r   r   r'   r'   5   s3        II  X  r   r'   c                       e Zd ZdZdS )
OAuthErrorzLUsed to indicate an error occurred during an OAuth related HTTP
    request.Nr   r   r   r   r*   r*   =   s           r   r*   c                   $     e Zd ZdZd fd	Z xZS )ReauthFailErrorz$An exception for when reauth failed.Nc                 p     t          t          |           j        d                    |          fi | d S )NzReauthentication failed. {0})r   r,   r   format)r
   messager   r   s      r   r   zReauthFailError.__init__E   sL    -ot$$-*11'::	
 	
>D	
 	
 	
 	
 	
r   r   )r   r   r   r   r   r   r   s   @r   r,   r,   B   sC        ..
 
 
 
 
 
 
 
 
 
r   r,   c                       e Zd ZdZdS )ReauthSamlChallengeFailErrorz0An exception for SAML reauth challenge failures.Nr   r   r   r   r1   r1   K   s        ::::r   r1   c                       e Zd ZdZdS )MalformedErrorz An exception for malformed data.Nr   r   r   r   r3   r3   O   s        ****r   r3   c                       e Zd ZdZdS )InvalidResourcezAn exception for URL error.Nr   r   r   r   r5   r5   S   s        %%%%r   r5   c                       e Zd ZdZdS )InvalidOperationz#An exception for invalid operation.Nr   r   r   r   r7   r7   W   s        ----r   r7   c                       e Zd ZdZdS )InvalidValuez*Used to wrap general ValueError of python.Nr   r   r   r   r9   r9   [   s        4444r   r9   c                       e Zd ZdZdS )InvalidTypez)Used to wrap general TypeError of python.Nr   r   r   r   r;   r;   _   s        3333r   r;   c                       e Zd ZdZdS )OSErrorz7Used to wrap EnvironmentError(OSError after python3.3).Nr   r   r   r   r=   r=   c   s        AAAAr   r=   c                       e Zd ZdZdS )TimeoutErrorzAUsed to indicate a timeout error occurred during an HTTP request.Nr   r   r   r   r?   r?   g           KKKKr   r?   c                       e Zd ZdZdS )ResponseErrorzAUsed to indicate an error occurred when reading an HTTP response.Nr   r   r   r   rB   rB   k   r@   r   rB   N)r   	Exceptionr   r   r   r!   r#   r%   r'   r*   r,   r1   
ValueErrorr3   r5   r7   r9   	TypeErrorr;   EnvironmentErrorr=   r?   rB   r   r   r   <module>rG      sP   2 1
 
 
 
 
i 
 
 
E E E E E_ E E E    ?   
N N N N N? N N NF F F F Fo F F F6 6 6 6 6O 6 6 6
    o          

 
 
 
 
l 
 
 
; ; ; ; ;? ; ; ;+ + + + +,j + + +& & & & &-z & & &. . . . ..
 . . .5 5 5 5 5*J 5 5 54 4 4 4 4)9 4 4 4B B B B B%'7 B B BL L L L L? L L LL L L L LO L L L L Lr   