Reference documentation and code samples for the signet class Signet::AuthorizationError.
An error indicating the remote server refused to authorize the client.
Inherits
- StandardError
Methods
#initialize
def
initialize
(
message
,
options
=
{})
-
>
AuthorizationError
Creates a new authentication error.
Parameters
- message(String) — A message describing the error.
- options(Hash) —
The configuration parameters for the request.
-
:request
- A Faraday::Request object. Optional. -
:response
- A Faraday::Response object. Optional. -
:code
- An error code. -
:description
- Human-readable text intended to be used to assist in resolving the error condition. -
:uri
- A URI identifying a human-readable web page with additional information about the error, indended for the resource owner.
-
Returns
- ( AuthorizationError ) — a new instance of AuthorizationError
#request
def
request
()
-
>
Array
The HTTP request that triggered this authentication error.
Returns
- (Array) — A tuple of method, uri, headers, and body.
#response
def
response
()
-
>
Array
The HTTP response that triggered this authentication error.
Returns
- (Array) — A tuple of status, headers, and body.