
    gy                        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y%)&z+Exceptions used in the google.auth package.c                   2     e Zd ZdZ fdZed        Z xZS )GoogleAuthErrorz&Base class for all google.auth errors.c                 X    t        t        | 
  |  |j                  dd      }|| _        y )N	retryableF)superr   __init__get
_retryable)selfargskwargsr   	__class__s       s/var/www/html/FastMealFinder_FlaskServer-InitialRelease/venv/lib/python3.12/site-packages/google/auth/exceptions.pyr   zGoogleAuthError.__init__   s)    ot-t4JJ{E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      s    0$
  r   r   c                       e Zd ZdZy)TransportErrorz:Used to indicate an error occurred during an HTTP request.Nr   r   r   r    r   r   r   r      s    Dr   r   c                       e Zd ZdZy)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y)UserAccessTokenErrorzCUsed to indicate ``gcloud auth print-access-token`` command failed.Nr   r   r   r   r!   r!   (   s    Mr   r!   c                       e Zd ZdZy)DefaultCredentialsErrorz;Used to indicate that acquiring default credentials failed.Nr   r   r   r   r#   r#   ,   s    Er   r#   c                       e Zd ZdZy)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    6r   r%   c                        e Zd ZdZed        Zy)ClientCertErrorz?Used to indicate that client certificate is missing or invalid.c                      y)NFr   r   s    r   r   zClientCertError.retryable8   s    r   N)r   r   r   r   r   r   r   r   r   r'   r'   5   s    I r   r'   c                       e Zd ZdZy)
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.c                 L    t        t        | 
  dj                  |      fi | y )NzReauthentication failed. {0})r   r,   r   format)r
   messager   r   s      r   r   zReauthFailError.__init__E   s(    ot-*11':	
>D	
r   r   )r   r   r   r   r   r   r   s   @r   r,   r,   B   s    .
 
r   r,   c                       e Zd ZdZy)ReauthSamlChallengeFailErrorz0An exception for SAML reauth challenge failures.Nr   r   r   r   r1   r1   K   s    :r   r1   c                       e Zd ZdZy)MalformedErrorz An exception for malformed data.Nr   r   r   r   r3   r3   O   s    *r   r3   c                       e Zd ZdZy)InvalidResourcezAn exception for URL error.Nr   r   r   r   r5   r5   S   s    %r   r5   c                       e Zd ZdZy)InvalidOperationz#An exception for invalid operation.Nr   r   r   r   r7   r7   W   s    -r   r7   c                       e Zd ZdZy)InvalidValuez*Used to wrap general ValueError of python.Nr   r   r   r   r9   r9   [   s    4r   r9   c                       e Zd ZdZy)InvalidTypez)Used to wrap general TypeError of python.Nr   r   r   r   r;   r;   _   s    3r   r;   c                       e Zd ZdZy)OSErrorz7Used to wrap EnvironmentError(OSError after python3.3).Nr   r   r   r   r=   r=   c   s    Ar   r=   c                       e Zd ZdZy)TimeoutErrorzAUsed to indicate a timeout error occurred during an HTTP request.Nr   r   r   r   r?   r?   g       Kr   r?   c                       e Zd ZdZy)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      s   2
i 
E_ E? 
N? NFo F6O 6
o  

l 
;? ;+,j +&-z &..
 .5*J 54)9 4B%'7 BL? LLO Lr   