%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3/dist-packages/oauthlib/oauth1/rfc5849/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3/dist-packages/oauthlib/oauth1/rfc5849/__pycache__/errors.cpython-312.pyc

�

&�`�	���dZddlmZmZGd�de�ZGd�de�ZGd�de�ZGd	�d
e�ZGd�de�Z	y
)z�
oauthlib.oauth1.rfc5849.errors
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error used both by OAuth 1 clients and provicers to represent the spec
defined error responses for all four core grant types.
�)�add_params_to_uri�	urlencodec�R��eZdZdZdZ		d�fd�	Zd�Zed��Zed��Z	�xZ
S)�OAuth1ErrorN�c����|xs|j|_dj|j|j�}|r|dt|�zz
}t�|�|�||_||_y)a�
        description:    A human-readable ASCII [USASCII] text providing
                        additional information, used to assist the client
                        developer in understanding the error that occurred.
                        Values for the "error_description" parameter MUST NOT
                        include characters outside the set
                        x20-21 / x23-5B / x5D-7E.

        uri:    A URI identifying a human-readable web page with information
                about the error, used to provide the client developer with
                additional information about the error.  Values for the
                "error_uri" parameter MUST conform to the URI- Reference
                syntax, and thus MUST NOT include characters outside the set
                x21 / x23-5B / x5D-7E.

        state:  A CSRF protection value received from the client.

        request:  Oauthlib Request object
        z({}) {}� N)�description�format�error�repr�super�__init__�uri�status_code)�selfr
rr�request�message�	__class__s      ��@/usr/lib/python3/dist-packages/oauthlib/oauth1/rfc5849/errors.pyrzOAuth1Error.__init__sf���*'�:�$�*:�*:����"�"�4�:�:�t�/?�/?�@����s�T�'�]�*�*�G�
����!����&���c�.�t||j�S�N)r�	twotuples)rrs  r�in_urizOAuth1Error.in_uri-s�� ��d�n�n�5�5rc���d|jfg}|jr|jd|jf�|jr|jd|jf�|S)Nr�error_description�	error_uri)rr
�appendr)rrs  rrzOAuth1Error.twotuples0sU���4�:�:�&�'������L�L�-�t�/?�/?�@�A��8�8��L�L�+�t�x�x�0�1��rc�,�t|j�Sr)rr)rs r�
urlencodedzOAuth1Error.urlencoded9s������(�(r)NNi�N)�__name__�
__module__�__qualname__rr
rr�propertyrr!�
__classcell__)rs@rrrsE����E��K�?B��'�<6������)��)rrc��eZdZdZdZy)�InsecureTransportError�insecure_transport_protocolz%Only HTTPS connections are permitted.N)r"r#r$rr
�rrr(r(>s��)�E�9�Krr(c��eZdZdZy)�InvalidSignatureMethodError�invalid_signature_methodN�r"r#r$rr*rrr,r,Cs��&�Err,c��eZdZdZy)�InvalidRequestError�invalid_requestNr.r*rrr0r0Gs���Err0c��eZdZdZy)�InvalidClientError�invalid_clientNr.r*rrr3r3Ks���Err3N)
�__doc__�oauthlib.commonrr�	Exceptionrr(r,r0r3r*rr�<module>r8sL���9�0)�)�0)�f:�[�:�
'�+�'��+����r

Zerion Mini Shell 1.0