
    <@g"                         d dl Z d dlm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	y)    N)StripeErrorc                   .     e Zd Z	 	 	 	 d fd	Zd Z xZS )
OAuthErrorc                 6    t         t        |   ||||||       y )N)superr   __init__)selfcodedescription	http_bodyhttp_status	json_bodyheaders	__class__s          Q/var/www/html/AdoubleTech/venv/lib/python3.12/site-packages/stripe/oauth_error.pyr   zOAuthError.__init__   s!     	j$(KGT	
    c                     | j                   y t        j                  j                  j	                  | j                   t        j
                  j                         d      S )NV1)values	requestorapi_mode)r   stripeerror_objectOAuthErrorObject_construct_from_APIRequestor_global_instance)r	   s    r   _construct_error_objectz"OAuthError._construct_error_object   sP    >>!""33CC>>**;;= D 
 	
r   )NNNN)__name__
__module____qualname__r   r   __classcell__)r   s   @r   r   r      s    
 

r   r   c                       e Zd Zy)InvalidClientErrorNr   r    r!    r   r   r$   r$          r   r$   c                       e Zd Zy)InvalidGrantErrorNr%   r&   r   r   r)   r)   #   r'   r   r)   c                       e Zd Zy)InvalidRequestErrorNr%   r&   r   r   r+   r+   '   r'   r   r+   c                       e Zd Zy)InvalidScopeErrorNr%   r&   r   r   r-   r-   +   r'   r   r-   c                       e Zd Zy)UnsupportedGrantTypeErrorNr%   r&   r   r   r/   r/   /   r'   r   r/   c                       e Zd Zy)UnsupportedResponseTypeErrorNr%   r&   r   r   r1   r1   3   r'   r   r1   )
r   stripe._errorr   r   r$   r)   r+   r-   r/   r1   r&   r   r   <module>r3      s_     %
 
2	 		
 		* 		
 		
 		: 	r   