&` dZddlmZmZGddeZGddeZGddeZGd d eZGd d eZ 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 urlencodecReZdZdZdZ dfd ZdZedZedZ xZ S) OAuth1ErrorNc|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) descriptionformaterrorreprsuper__init__uri status_code)selfr rrrequestmessage __class__s @/usr/lib/python3/dist-packages/oauthlib/oauth1/rfc5849/errors.pyrzOAuth1Error.__init__sf*':$*:*:""4::t/?/?@  sT']* *G !&c.t||jSN)r twotuples)rrs rin_urizOAuth1Error.in_uri-s dnn55rcd|jfg}|jr|jd|jf|jr|jd|jf|S)Nr error_description error_uri)r r appendr)rr s rrzOAuth1Error.twotuples0sU4::&'    LL-t/?/?@ A 88 LL+txx0 1 rc,t|jSr)rr)rs r urlencodedzOAuth1Error.urlencoded9s((r)NNiN) __name__ __module__ __qualname__r r rrpropertyrr! __classcell__)rs@rrr sE EK?B'<6))rrceZdZdZdZy)InsecureTransportErrorinsecure_transport_protocolz%Only HTTPS connections are permitted.N)r"r#r$r r rrr(r(>s )E9Krr(ceZdZdZy)InvalidSignatureMethodErrorinvalid_signature_methodNr"r#r$r r*rrr,r,Cs &Err,ceZdZdZy)InvalidRequestErrorinvalid_requestNr.r*rrr0r0Gs Err0ceZdZdZy)InvalidClientErrorinvalid_clientNr.r*rrr3r3Ks Err3N) __doc__oauthlib.commonrr Exceptionrr(r,r0r3r*rrr8sL90))0)f:[: '+'+r