
    k7i                     R    S SK Jr   " S S\5      r " S S\5      r " S S\5      rg)	    default_json_headersc                   B   ^  \ rS rSrSrSrSrSrSU 4S jjrS r	Sr
U =r$ )	AuthlibBaseError   z)Base Exception for all errors in Authlib.N c                    > Ub  Xl         Ub  X l        Ub  X0l        U R                    SU R                   3n[        TU ]  U5        g )Nz: )errordescriptionurisuper__init__)selfr
   r   r   message	__class__s        O/home/james-whalen/.local/lib/python3.13/site-packages/authlib/common/errors.pyr   AuthlibBaseError.__init__   sL    J"*?HZZL4#3#3"45!    c                 P    SU R                   R                   SU R                   S3$ )N<z "z">)r   __name__r
   r   s    r   __repr__AuthlibBaseError.__repr__   s&    4>>**+2djj\<<r   )r   r
   r   )NNN)r   
__module____qualname____firstlineno____doc__r
   r   r   r   r   __static_attributes____classcell__r   s   @r   r   r      s&    3 EK
C	"= =r   r   c                   L   ^  \ rS rSrSrS	U 4S jjrS rS rS rS
S jr	Sr
U =r$ )AuthlibHTTPError   i  c                 :   > [         TU ]  XU5        Ub  X@l        g g N)r   r   status_code)r   r
   r   r   r'   r   s        r   r   AuthlibHTTPError.__init__!   s#    S1"* #r   c                     U R                   $ r&   )r   r   s    r   get_error_description&AuthlibHTTPError.get_error_description&   s    r   c                     SU R                   4/nU R                  (       a  UR                  SU R                  45        U R                  (       a  UR                  SU R                  45        U$ )Nr
   error_description	error_uri)r
   r   appendr   )r   r
   s     r   get_bodyAuthlibHTTPError.get_body)   sU    4::&'LL-t/?/?@A88LL+txx01r   c                     [         S S  $ r&   r   r   s    r   get_headersAuthlibHTTPError.get_headers3   s    #A&&r   c                 |    Xl         [        U R                  5       5      nU R                  5       nU R                  X#4$ r&   )r   dictr0   r3   r'   )r   r   bodyheaderss       r   __call__AuthlibHTTPError.__call__6   s6    DMMO$""$..r   )r'   r   )NNNNr&   )r   r   r   r   r'   r   r*   r0   r3   r9   r   r    r!   s   @r   r#   r#      s&    K+
 '/ /r   r#   c                       \ rS rSrSrg)ContinueIteration=    N)r   r   r   r   r   r>   r   r   r<   r<   =   s    r   r<   N)authlib.constsr   	Exceptionr   r#   r<   r>   r   r   <module>rA      s/    /=y =2/' /@	( 	r   