Exception: Signet::AuthorizationError
- Inherits:
-
StandardError
- Object
- StandardError
- Signet::AuthorizationError
- Defined in:
- lib/signet/errors.rb
Overview
An error indicating the server refused to authorize the client.
Instance Attribute Summary collapse
-
#request ⇒ Array
readonly
The HTTP request that triggered this authentication error.
-
#response ⇒ Array
readonly
The HTTP response that triggered this authentication error.
Instance Method Summary collapse
-
#initialize(message, options = {}) ⇒ AuthorizationError
constructor
Creates a new authentication error.
Constructor Details
#initialize(message, options = {}) ⇒ AuthorizationError
Creates a new authentication error.
51 52 53 54 55 56 57 58 59 |
# File 'lib/signet/errors.rb', line 51 def initialize(, ={}) super() @options = @request = [:request] @response = [:response] @code = [:code] @description = [:description] @uri = Addressable::URI.parse([:uri]) end |
Instance Attribute Details
#request ⇒ Array (readonly)
The HTTP request that triggered this authentication error.
65 66 67 |
# File 'lib/signet/errors.rb', line 65 def request @request end |
#response ⇒ Array (readonly)
The HTTP response that triggered this authentication error.
71 72 73 |
# File 'lib/signet/errors.rb', line 71 def response @response end |