
                             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y)z2A module that provides rapt authentication errors.c                       e Zd ZdZy)ReauthErrorz$Base exception for reauthentication.N)__name__
__module____qualname____doc__     5lib/third_party/oauth2client/contrib/reauth_errors.pyr   r      s    .r	   r   c                   "     e Zd ZdZ fdZ xZS )ReauthUnattendedErrorz0An exception for when reauth cannot be answered.c                 ,    t         t        |   d       y )Nz_Reauthentication challenge could not be answered because you are not in an interactive session.)superr   __init__self	__class__s    r
   r   zReauthUnattendedError.__init__   s    #T3-	.r	   r   r   r   r   r   __classcell__r   s   @r
   r   r      s    :. .r	   r   c                   "     e Zd ZdZ fdZ xZS )ReauthFailErrorz$An exception for when reauth failed.c                 ,    t         t        |   d       y )Nz"Reauthentication challenge failed.)r   r   r   r   s    r
   r   zReauthFailError.__init__"   s    ot-0	2r	   r   r   s   @r
   r   r      s    .2 2r	   r   c                   "     e Zd ZdZ fdZ xZS )ReauthAPIErrorzDAn exception for when reauth API returned something we can't handle.c                 J    t         t        |   dj                  |             y )Nz8Reauthentication challenge failed due to API error: {0}.)r   r   r   format)r   	api_errorr   s     r
   r   zReauthAPIError.__init__*   s#    nd,FMM	r	   r   r   s   @r
   r   r   '   s    N r	   r   c                   "     e Zd ZdZ fdZ xZS )ReauthAccessTokenRefreshErrorz>An exception for when we can't get an access token for reauth.c                 ,    t         t        |   d       y )Nz3Failed to get an access token for reauthentication.)r   r   r   r   s    r
   r   z&ReauthAccessTokenRefreshError.__init__3   s    +T;A	Cr	   r   r   s   @r
   r   r   0   s    HC Cr	   r   c                   "     e Zd ZdZ fdZ xZS )ReauthSamlLoginRequiredErrorzAn 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                 ,    t         t        |   d       y )NzLSAML login is required for the current account to complete reauthentication.)r   r"   r   r   s    r
   r   z%ReauthSamlLoginRequiredError.__init__?   s    *D: 	!r	   r   r   s   @r
   r"   r"   8   s    ! !r	   r"   N)r   	Exceptionr   r   r   r   r   r"   r   r	   r
   <module>r%      sT    9	) 	
.K .2k 2[ CK C
!; 
!r	   