o
    iiy                     @   s4  d Z G dd deZG dd deZG dd deZG dd deZG d	d
 d
eZG dd deZG dd deZG dd deZ	G dd deZ
G dd de
ZG dd deeZG dd deeZG dd deeZG dd deeZG dd deeZG dd  d eeZG d!d" d"eZG d#d$ d$eZd%S )&z+Exceptions used in the google.auth package.c                       s,   e Zd ZdZ fddZedd Z  ZS )GoogleAuthErrorz&Base class for all google.auth errors.c                    s&   t t| j|  |dd}|| _d S )N	retryableF)superr   __init__get
_retryable)selfargskwargsr   	__class__ V/home/air/goalskill_t/back/venv/lib/python3.10/site-packages/google/auth/exceptions.pyr      s   
zGoogleAuthError.__init__c                 C   s   | j S N)r   r   r   r   r   r      s   zGoogleAuthError.retryable)__name__
__module____qualname____doc__r   propertyr   __classcell__r   r   r
   r   r      s
    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   r          r   c                   @   r   )RefreshErrorzMUsed to indicate that an refreshing the credentials' access token
    failed.Nr   r   r   r   r   r   #   r   r   c                   @   r   )UserAccessTokenErrorzCUsed to indicate ``gcloud auth print-access-token`` command failed.Nr   r   r   r   r   r   (   r   r   c                   @   r   )DefaultCredentialsErrorz;Used to indicate that acquiring default credentials failed.Nr   r   r   r   r   r   ,   r   r   c                   @   r   )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   r   r   c                   @   s   e Zd ZdZedd ZdS )ClientCertErrorz?Used to indicate that client certificate is missing or invalid.c                 C   s   dS )NFr   r   r   r   r   r   8   s   zClientCertError.retryableN)r   r   r   r   r   r   r   r   r   r   r   5   s    r   c                   @   r   )
OAuthErrorzLUsed to indicate an error occurred during an OAuth related HTTP
    request.Nr   r   r   r   r   r   =   r   r   c                       s"   e Zd ZdZd fdd	Z  ZS )ReauthFailErrorz$An exception for when reauth failed.Nc                    s"   t t| jd|fi | d S )NzReauthentication failed. {0})r   r    r   format)r   messager	   r
   r   r   r   E   s
   

zReauthFailError.__init__r   )r   r   r   r   r   r   r   r   r
   r   r    B   s    r    c                   @   r   )ReauthSamlChallengeFailErrorz0An exception for SAML reauth challenge failures.Nr   r   r   r   r   r#   K   r   r#   c                   @   r   )MalformedErrorz An exception for malformed data.Nr   r   r   r   r   r$   O   r   r$   c                   @   r   )InvalidResourcezAn exception for URL error.Nr   r   r   r   r   r%   S   r   r%   c                   @   r   )InvalidOperationz#An exception for invalid operation.Nr   r   r   r   r   r&   W   r   r&   c                   @   r   )InvalidValuez*Used to wrap general ValueError of python.Nr   r   r   r   r   r'   [   r   r'   c                   @   r   )InvalidTypez)Used to wrap general TypeError of python.Nr   r   r   r   r   r(   _   r   r(   c                   @   r   )OSErrorz7Used to wrap EnvironmentError(OSError after python3.3).Nr   r   r   r   r   r)   c   r   r)   c                   @   r   )TimeoutErrorzAUsed to indicate a timeout error occurred during an HTTP request.Nr   r   r   r   r   r*   g   r   r*   c                   @   r   )ResponseErrorzAUsed to indicate an error occurred when reading an HTTP response.Nr   r   r   r   r   r+   k   r   r+   N)r   	Exceptionr   r   r   r   r   r   r   r   r    r#   
ValueErrorr$   r%   r&   r'   	TypeErrorr(   EnvironmentErrorr)   r*   r+   r   r   r   r   <module>   s&   	