o
    €ÏÕ  ã                   @   sh   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dS )z2A module that provides rapt authentication errors.c                   @   s   e Zd ZdZdS )ÚReauthErrorz$Base exception for reauthentication.N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r   r   úK/tmp/google-cloud-sdk/lib/third_party/oauth2client/contrib/reauth_errors.pyr      s    r   c                       ó    e Zd ZdZ‡ fdd„Z‡  ZS )ÚReauthUnattendedErrorz0An exception for when reauth cannot be answered.c                    ó   t t| ƒ d¡ d S )Nz_Reauthentication challenge could not be answered because you are not in an interactive session.)Úsuperr	   Ú__init__©Úself©Ú	__class__r   r   r      ó   
ÿzReauthUnattendedError.__init__©r   r   r   r   r   Ú__classcell__r   r   r   r   r	      ó    r	   c                       r   )ÚReauthFailErrorz$An exception for when reauth failed.c                    r
   )Nz"Reauthentication challenge failed.)r   r   r   r   r   r   r   r   "   r   zReauthFailError.__init__r   r   r   r   r   r      r   r   c                       r   )ÚReauthAPIErrorzDAn exception for when reauth API returned something we can't handle.c                    s   t t| ƒ d |¡¡ d S )Nz8Reauthentication challenge failed due to API error: {0}.)r   r   r   Úformat)r   Ú	api_errorr   r   r   r   *   s
   
ÿÿzReauthAPIError.__init__r   r   r   r   r   r   '   r   r   c                       r   )ÚReauthAccessTokenRefreshErrorz>An exception for when we can't get an access token for reauth.c                    r
   )Nz3Failed to get an access token for reauthentication.)r   r   r   r   r   r   r   r   3   r   z&ReauthAccessTokenRefreshError.__init__r   r   r   r   r   r   0   r   r   c                       r   )ÚReauthSamlLoginRequiredErrorz¨An exception for when web login is required to complete reauth.

    This applies to SAML users who are required to login through their IDP to
    complete reauth.
    c                    r
   )NzLSAML login is required for the current account to complete reauthentication.)r   r   r   r   r   r   r   r   ?   r   z%ReauthSamlLoginRequiredError.__init__r   r   r   r   r   r   8   s    r   N)r   Ú	Exceptionr   r	   r   r   r   r   r   r   r   r   Ú<module>   s   		