File: //lib/python3.6/site-packages/oauthlib/oauth1/rfc5849/__pycache__/errors.cpython-36.pyc
3
,�[� � @ st d Z ddlmZ ddlmZmZ G dd� de�ZG dd� de�ZG dd � d e�Z G d
d� de�Z
G dd
� d
e�ZdS )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.
� )�unicode_literals)�add_params_to_uri� urlencodec sF e Zd ZdZdZd� fdd� Zdd� Zedd � �Zed
d� �Z � Z
S )
�OAuth1ErrorN� � c sP |p| j | _ d| j| j f }|r0|dt|� 7 }tt| �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(%s) %s� N)�description�error�repr�superr �__init__�uri�status_code)�selfr r r Zrequest�message)� __class__� �/usr/lib/python3.6/errors.pyr
s zOAuth1Error.__init__c C s t || j�S )N)r � twotuples)r r r r r �in_uri0 s zOAuth1Error.in_uric C s<