class Signet::AuthorizationError
An error indicating the remote server refused to authorize the client.
Attributes
request[R]
The HTTP request that triggered this authentication error.
@return [Array] A tuple of method, uri, headers, and body.
response[R]
The HTTP response that triggered this authentication error.
@return [Array] A tuple of status, headers, and body.
Public Class Methods
new(message, options = {})
click to toggle source
Creates a new authentication error.
@param [String] message
A message describing the error.
@param [Hash] options
The configuration parameters for the request. - <code>:request</code> - A Faraday::Request object. Optional. - <code>:response</code> - A Faraday::Response object. Optional. - <code>:code</code> - An error code. - <code>:description</code> - Human-readable text intended to be used to assist in resolving the error condition. - <code>:uri</code> - A URI identifying a human-readable web page with additional information about the error, indended for the resource owner.
Calls superclass method
# File lib/signet/errors.rb, line 69 def initialize message, options = {} super message @options = options @request = options[:request] @response = options[:response] @code = options[:code] @description = options[:description] @uri = Addressable::URI.parse options[:uri] end