parameters: (self, description=None, uri=None, state=None,
                   status_code=None, request=None)
docstring: 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
docstring_summary: 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.
docstring_tokens: 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 .
function: def __init__(self, description=None, uri=None, state=None,
                   status_code=None, request=None):
          """
          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
          """
          if description is not None:
              self.description = description
  
          message = '(%s) %s' % (self.error, self.description)
          if request:
              message += ' ' + repr(request)
          super(OAuth2Error, self).__init__(message)
  
          self.uri = uri
          self.state = state
  
          if status_code:
              self.status_code = status_code
  
          if request:
              self.redirect_uri = request.redirect_uri
              self.client_id = request.client_id
              self.scopes = request.scopes
              self.response_type = request.response_type
              self.response_mode = request.response_mode
              self.grant_type = request.grant_type
              if not state:
                  self.state = request.state
          else:
              self.redirect_uri = None
              self.client_id = None
              self.scopes = None
              self.response_type = None
              self.response_mode = None
              self.grant_type = None
function_tokens: def __init__ ( self , description = None , uri = None , state = None , status_code = None , request = None ) : if description is not None : self . description = description message = '(%s) %s' % ( self . error , self . description ) if request : message += ' ' + repr ( request ) super ( OAuth2Error , self ) . __init__ ( message ) self . uri = uri self . state = state if status_code : self . status_code = status_code if request : self . redirect_uri = request . redirect_uri self . client_id = request . client_id self . scopes = request . scopes self . response_type = request . response_type self . response_mode = request . response_mode self . grant_type = request . grant_type if not state : self . state = request . state else : self . redirect_uri = None self . client_id = None self . scopes = None self . response_type = None self . response_mode = None self . grant_type = None