Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.6/site-packages/oauthlib/oauth1/rfc5849/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.6/site-packages/oauthlib/oauth1/rfc5849/__pycache__/errors.cpython-36.pyc

3

 ��c�	�@shdZddlmZmZGdd�de�ZGdd�de�ZGdd�de�ZGd	d
�d
e�ZGdd�de�Z	d
S)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�	urlencodecsFeZdZdZdZd�fdd�	Zdd�Zedd	��Zed
d��Z	�Z
S)
�OAuth1ErrorN��csL|p|j|_dj|j|j�}|r0|dt|�7}t�j|�||_||_dS)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)�selfrrr�request�message)�	__class__��B/tmp/pip-build-_uu8ur7s/oauthlib/oauthlib/oauth1/rfc5849/errors.pyr
szOAuth1Error.__init__cCst||j�S)N)r�	twotuples)rrrrr�in_uri-szOAuth1Error.in_uricCs<d|jfg}|jr"|jd|jf�|jr8|jd|jf�|S)Nr
Zerror_descriptionZ	error_uri)r
r�appendr)rr
rrrr0szOAuth1Error.twotuplescCs
t|j�S)N)rr)rrrr�
urlencoded9szOAuth1Error.urlencoded)NNrN)�__name__�
__module__�__qualname__r
rr
r�propertyrr�
__classcell__rr)rrrs	rc@seZdZdZdZdS)�InsecureTransportErrorZinsecure_transport_protocolz%Only HTTPS connections are permitted.N)rrrr
rrrrrr>src@seZdZdZdS)�InvalidSignatureMethodErrorZinvalid_signature_methodN)rrrr
rrrrr Csr c@seZdZdZdS)�InvalidRequestErrorZinvalid_requestN)rrrr
rrrrr!Gsr!c@seZdZdZdS)�InvalidClientErrorZinvalid_clientN)rrrr
rrrrr"Ksr"N)
�__doc__Zoauthlib.commonrr�	Exceptionrrr r!r"rrrr�<module>s3

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists