
    `
                         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g)z2A module that provides rapt authentication errors.c                       \ rS rSrSrSrg)ReauthError   z$Base exception for reauthentication. N)__name__
__module____qualname____firstlineno____doc____static_attributes__r       Hplatform/gsutil/third_party/google-reauth-python/google_reauth/errors.pyr   r      s    .r   r   c                   0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )HttpAccessTokenRefreshError   zCError (with HTTP status) trying to refresh an expired access token.c                 8   > [         [        U ]  U5        X l        g N)superr   __init__statusselfmessager   	__class__s      r   r   $HttpAccessTokenRefreshError.__init__   s    )49'Br   r   r   r   r   r   r	   r
   r   r   __classcell__r   s   @r   r   r      s    M r   r   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )ReauthUnattendedError   z0An exception for when reauth cannot be answered.c                 ,   > [         [        U ]  S5        g )Nz_Reauthentication challenge could not be answered because you are not in an interactive session.)r   r    r   r   r   s    r   r   ReauthUnattendedError.__init__    s    #T3-	.r   r   r   r   s   @r   r    r       s    :. .r   r    c                   0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )ReauthFailError&   z$An exception for when reauth failed.c                 J   > [         [        U ]  SR                  U5      5        g )Nz&Reauthentication challenge failed. {0})r   r&   r   format)r   r   r   s     r   r   ReauthFailError.__init__)   s!    ot-4;;GD	Fr   r   r   r   r   s   @r   r&   r&   &   s    .F Fr   r&   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )ReauthAPIError.   zDAn exception for when reauth API returned something we can't handle.c                 J   > [         [        U ]  SR                  U5      5        g )Nz8Reauthentication challenge failed due to API error: {0}.)r   r,   r   r)   )r   	api_errorr   s     r   r   ReauthAPIError.__init__1   s#    nd,FMM	r   r   r   r   s   @r   r,   r,   .   s    N r   r,   c                   0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )ReauthAccessTokenRefreshError7   z>An exception for when we can't get an access token for reauth.c                 V   > [         [        U ]  SR                  U5      5        X l        g )Nz7Failed to get an access token for reauthentication. {0})r   r2   r   r)   r   r   s      r   r   &ReauthAccessTokenRefreshError.__init__:   s+    +T;ELL	 r   r   )NNr   r   s   @r   r2   r2   7   s    H r   r2   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )ReauthSamlLoginRequiredErrorA   zAn 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                 ,   > [         [        U ]  S5        g )NzLSAML login is required for the current account to complete reauthentication.)r   r7   r   r#   s    r   r   %ReauthSamlLoginRequiredError.__init__H   s    *D: 	!r   r   r   r   s   @r   r7   r7   A   s    ! !r   r7   N)	r
   	Exceptionr   r   r    r&   r,   r2   r7   r   r   r   <module>r<      s`    9	) 	
) .K .Fk F[ K 
!; 
!r   