
    $g$                         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          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d"S )#c                       e Zd ZdZdS )SocialAuthBaseExceptionz#Base class for pipeline exceptions.N)__name__
__module____qualname____doc__     V/var/www/html/netbox-4.1.3/venv/lib/python3.11/site-packages/social_core/exceptions.pyr   r      s        --Dr	   r   c                       e Zd Zd Zd ZdS )WrongBackendc                     || _         d S Nbackend_name)selfr   s     r
   __init__zWrongBackend.__init__   s    (r	   c                     d| j          dS )Nz"Incorrect authentication service ""r   r   s    r
   __str__zWrongBackend.__str__   s    HD4EHHHHr	   N)r   r   r   r   r   r   r	   r
   r   r      s7        ) ) )I I I I Ir	   r   c                       e Zd Zd ZdS )MissingBackendc                     d| j          dS )NzMissing backend "z" entryr   r   s    r
   r   zMissingBackend.__str__   s    =4#4====r	   Nr   r   r   r   r   r	   r
   r   r      s#        > > > > >r	   r   c                       e Zd ZdZd ZdS )NotAllowedToDisconnectz6User is not allowed to disconnect it's social account.c                     dS )Nz/This account is not allowed to be disconnected.r   r   s    r
   r   zNotAllowedToDisconnect.__str__   s    @@r	   Nr   r   r   r   r   r   r	   r
   r   r      s.        @@A A A A Ar	   r   c                   "     e Zd ZdZ fdZ xZS )AuthExceptionzAuth process exception.c                 H    || _          t                      j        |i | d S r   )backendsuperr   )r   r"   argskwargs	__class__s       r
   r   zAuthException.__init__   s,    $)&)))))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 )
AuthFailedz$Auth process failed for some reason.c                 ^    t                                                      }|dk    rdS d| S )Naccess_deniedz#Authentication process was canceledzAuthentication failed: r#   r   r   msgr&   s     r
   r   zAuthFailed.__str__&   s5    ggoo/!!88....r	   r   r   r   r   r   r'   r(   s   @r
   r*   r*   #   s>        ../ / / / / / / / /r	   r*   c                   ,     e Zd ZdZ fdZ fdZ xZS )AuthCanceledz"Auth process was canceled by user.c                 p    |                     dd           | _         t                      j        |i | d S )Nresponse)popr4   r#   r   )r   r$   r%   r&   s      r
   r   zAuthCanceled.__init__0   s:    

:t44$)&)))))r	   c                 V    t                                                      }|rd| S dS )Nz!Authentication process canceled: zAuthentication process canceledr-   r.   s     r
   r   zAuthCanceled.__str__4   s2    ggoo 	=<s<<<00r	   r   r   r   r   r   r   r'   r(   s   @r
   r2   r2   -   sW        ,,* * * * *1 1 1 1 1 1 1 1 1r	   r2   c                   "     e Zd ZdZ fdZ xZS )AuthUnknownErrorzUnknown auth process error.c                 N    t                                                      }d| S )Nz/An unknown error happened while authenticating r-   r.   s     r
   r   zAuthUnknownError.__str__>   s$    ggooFFFFr	   r0   r(   s   @r
   r9   r9   ;   sG        %%G G G G G G G G Gr	   r9   c                   "     e Zd ZdZ fdZ xZS )AuthTokenErrorzAuth token error.c                 N    t                                                      }d| S )NzToken error: r-   r.   s     r
   r   zAuthTokenError.__str__F   s$    ggoo$s$$$r	   r0   r(   s   @r
   r<   r<   C   s>        % % % % % % % % %r	   r<   c                   (     e Zd ZdZ fdZd Z xZS )AuthMissingParameterz:Missing parameter needed to start or complete the process.c                 P    || _          t                      j        |g|R i | d S r   )	parameterr#   r   )r   r"   rA   r$   r%   r&   s        r
   r   zAuthMissingParameter.__init__N   s7    "24222622222r	   c                     d| j          S )NzMissing needed parameter )rA   r   s    r
   r   zAuthMissingParameter.__str__R   s    ;4>;;;r	   r7   r(   s   @r
   r?   r?   K   sM        DD3 3 3 3 3< < < < < < <r	   r?   c                       e Zd ZdZd ZdS )AuthStateMissingState parameter is incorrect.c                     dS )NzSession value state missing.r   r   s    r
   r   zAuthStateMissing.__str__Y       --r	   Nr   r   r	   r
   rD   rD   V   )        ''. . . . .r	   rD   c                       e Zd ZdZd ZdS )AuthStateForbiddenrE   c                     dS )NzWrong state parameter given.r   r   s    r
   r   zAuthStateForbidden.__str__`   rG   r	   Nr   r   r	   r
   rJ   rJ   ]   rH   r	   rJ   c                       e Zd ZdZd ZdS )AuthAlreadyAssociatedzAA different user has already associated the target social accountc                     dS )NzThis account is already in use.r   r   s    r
   r   zAuthAlreadyAssociated.__str__g       00r	   Nr   r   r	   r
   rM   rM   d   s)        KK1 1 1 1 1r	   rM   c                       e Zd ZdZd ZdS )AuthTokenRevokedz.User revoked the access_token in the provider.c                     dS )NzUser revoke access to the tokenr   r   s    r
   r   zAuthTokenRevoked.__str__n   rO   r	   Nr   r   r	   r
   rQ   rQ   k   s)        881 1 1 1 1r	   rQ   c                       e Zd ZdZd ZdS )AuthForbiddenz)Authentication for this user is forbiddenc                     dS )NzYour credentials aren't allowedr   r   s    r
   r   zAuthForbidden.__str__u   rO   r	   Nr   r   r	   r
   rT   rT   r   s)        331 1 1 1 1r	   rT   c                       e Zd ZdZd ZdS )AuthUnreachableProviderzCannot reach the providerc                     dS )Nz0The authentication provider could not be reachedr   r   s    r
   r   zAuthUnreachableProvider.__str__|   s    AAr	   Nr   r   r	   r
   rW   rW   y   s.        ##B B B B Br	   rW   c                       e Zd Zd ZdS )InvalidEmailc                     dS )NzEmail couldn't be validatedr   r   s    r
   r   zInvalidEmail.__str__   s    ,,r	   Nr   r   r	   r
   rZ   rZ      s#        - - - - -r	   rZ   N)
ValueErrorr   r   r   r   r    r*   r2   r9   r<   r?   rD   rJ   rM   rQ   rT   rW   rZ   r   r	   r
   <module>r]      s  	 	 	 	 	j 	 	 	I I I I I* I I I> > > > >\ > > >
A A A A A4 A A A* * * * *+ * * */ / / / / / / /1 1 1 1 1= 1 1 1G G G G G} G G G% % % % %] % % %< < < < <= < < <. . . . .} . . .. . . . . . . .1 1 1 1 1M 1 1 11 1 1 1 1} 1 1 11 1 1 1 1M 1 1 1B B B B Bm B B B- - - - -= - - - - -r	   