
    qhy                       S SK Jr  S SKJr  \(       a  SSKJ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 " 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 " S! S"\5      r " S# S$\5      r " S% S&\5      r " S' S(\5      rg))*    )annotations)TYPE_CHECKING   )BaseAuthc                      \ rS rSrSrSrg)SocialAuthBaseException	   z#Base class for pipeline exceptions. N)__name__
__module____qualname____firstlineno____doc____static_attributes__r
       H/var/www/html/env/lib/python3.13/site-packages/social_core/exceptions.pyr   r   	   s    -r   r   c                  $    \ rS rSrSS jrS rSrg)WrongBackend   c                    Xl         g Nbackend_name)selfr   s     r   __init__WrongBackend.__init__   s    (r   c                "    SU R                    S3$ )Nz"Incorrect authentication service ""r   r   s    r   __str__WrongBackend.__str__   s    3D4E4E3FaHHr   r   N)r   str)r   r   r   r   r   r    r   r
   r   r   r   r      s    )Ir   r   c                      \ rS rSrS rSrg)MissingBackend   c                "    SU R                    S3$ )NzMissing backend "z" entryr   r   s    r   r    MissingBackend.__str__   s    "4#4#4"5W==r   r
   Nr   r   r   r   r    r   r
   r   r   r$   r$      s    >r   r$   c                      \ rS rSrSrS rSrg)NotAllowedToDisconnect   z6User is not allowed to disconnect it's social account.c                    g)Nz/This account is not allowed to be disconnected.r
   r   s    r   r    NotAllowedToDisconnect.__str__   s    @r   r
   Nr   r   r   r   r   r    r   r
   r   r   r*   r*      s    @Ar   r*   c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )AuthException!   zAuth process exception.c                2   > Xl         [        TU ]  " U0 UD6  g r   )backendsuperr   )r   r3   argskwargs	__class__s       r   r   AuthException.__init__$   s    $)&)r   )r3   )r3   r   )r   r   r   r   r   r   r   __classcell__r7   s   @r   r0   r0   !   s    !* *r   r0   c                  ,   ^  \ rS rSrSrU 4S jrSrU =r$ )
AuthFailed)   z$Auth process failed for some reason.c                8   > [         TU ]  5       nUS:X  a  gSU 3$ )Naccess_deniedz#Authentication process was canceledzAuthentication failed: r4   r    r   msgr7   s     r   r    AuthFailed.__str__,   s'    go/!8(..r   r
   r   r   r   r   r   r    r   r9   r:   s   @r   r<   r<   )   s    ./ /r   r<   c                  8   ^  \ rS rSrSrU 4S jrU 4S jrSrU =r$ )AuthCanceled3   z"Auth process was canceled by user.c                T   > UR                  SS 5      U l        [        TU ]  " U0 UD6  g )Nresponse)poprI   r4   r   )r   r5   r6   r7   s      r   r   AuthCanceled.__init__6   s'    

:t4$)&)r   c                :   > [         TU ]  5       nU(       a  SU 3$ g)Nz!Authentication process canceled: zAuthentication process canceledr@   rA   s     r   r    AuthCanceled.__str__:   s"    go6se<<0r   )rI   	r   r   r   r   r   r   r    r   r9   r:   s   @r   rF   rF   3   s    ,*1 1r   rF   c                  ,   ^  \ rS rSrSrU 4S jrSrU =r$ )AuthUnknownErrorA   zUnknown auth process error.c                *   > [         TU ]  5       nSU 3$ )Nz/An unknown error happened while authenticating r@   rA   s     r   r    AuthUnknownError.__str__D   s    go@FFr   r
   rD   r:   s   @r   rP   rP   A   s    %G Gr   rP   c                  ,   ^  \ rS rSrSrU 4S jrSrU =r$ )AuthTokenErrorI   zAuth token error.c                *   > [         TU ]  5       nSU 3$ )NzToken error: r@   rA   s     r   r    AuthTokenError.__str__L   s    gose$$r   r
   rD   r:   s   @r   rU   rU   I   s    % %r   rU   c                  6   ^  \ rS rSrSrSU 4S jjrS rSrU =r$ )AuthMissingParameterQ   z:Missing parameter needed to start or complete the process.c                :   > X l         [        TU ]  " U/UQ70 UD6  g r   )	parameterr4   r   )r   r3   r]   r5   r6   r7   s        r   r   AuthMissingParameter.__init__T   s    "24262r   c                     SU R                    3$ )NzMissing needed parameter r]   r   s    r   r    AuthMissingParameter.__str__X   s    *4>>*:;;r   r`   )r3   r   r]   r"   rN   r:   s   @r   rZ   rZ   Q   s    D3< <r   rZ   c                      \ rS rSrSrS rSrg)AuthStateMissing\   State parameter is incorrect.c                    g)NzSession value state missing.r
   r   s    r   r    AuthStateMissing.__str___       -r   r
   Nr.   r
   r   r   rc   rc   \   
    '.r   rc   c                      \ rS rSrSrS rSrg)AuthStateForbiddenc   re   c                    g)NzWrong state parameter given.r
   r   s    r   r    AuthStateForbidden.__str__f   rh   r   r
   Nr.   r
   r   r   rk   rk   c   ri   r   rk   c                      \ rS rSrSrS rSrg)AuthAlreadyAssociatedj   zAA different user has already associated the target social accountc                    g)NzThis account is already in use.r
   r   s    r   r    AuthAlreadyAssociated.__str__m       0r   r
   Nr.   r
   r   r   rp   rp   j   s
    K1r   rp   c                      \ rS rSrSrS rSrg)AuthTokenRevokedq   z.User revoked the access_token in the provider.c                    g)NzUser revoke access to the tokenr
   r   s    r   r    AuthTokenRevoked.__str__t   rt   r   r
   Nr.   r
   r   r   rv   rv   q   s
    81r   rv   c                      \ rS rSrSrS rSrg)AuthForbiddenx   z)Authentication for this user is forbiddenc                    g)NzYour credentials aren't allowedr
   r   s    r   r    AuthForbidden.__str__{   rt   r   r
   Nr.   r
   r   r   r{   r{   x   s
    31r   r{   c                      \ rS rSrSrS rSrg)AuthUnreachableProvider   zCannot reach the providerc                    g)Nz0The authentication provider could not be reachedr
   r   s    r   r    AuthUnreachableProvider.__str__   s    Ar   r
   Nr.   r
   r   r   r   r      s    #Br   r   c                      \ rS rSrS rSrg)InvalidEmail   c                    g)NzEmail couldn't be validatedr
   r   s    r   r    InvalidEmail.__str__   s    ,r   r
   Nr(   r
   r   r   r   r      s    -r   r   c                  ,   ^  \ rS rSrSrU 4S jrSrU =r$ )AuthConnectionError   z&Connection error duing authentication.c                *   > [         TU ]  5       nSU 3$ )NzConnection error: r@   rA   s     r   r    AuthConnectionError.__str__   s    go#C5))r   r
   rD   r:   s   @r   r   r      s    0* *r   r   N)
__future__r   typingr   backends.baser   
ValueErrorr   r   r$   r*   r0   r<   rF   rP   rU   rZ   rc   rk   rp   rv   r{   r   r   r   r
   r   r   <module>r      s    "  '.j .I* I>\ >
A4 A*+ */ /1= 1G} G%] %<= <.} .. .1M 11} 11M 1Bm B-= -
*- *r   