Exception: Signet::AuthorizationError
- Inherits:
-
StandardError
- Object
- StandardError
- Signet::AuthorizationError
- Defined in:
- lib/signet/errors.rb
Overview
An error indicating the remote 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.
69 70 71 72 73 74 75 76 77 |
# File 'lib/signet/errors.rb', line 69 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.
83 84 85 |
# File 'lib/signet/errors.rb', line 83 def request @request end |
#response ⇒ Array (readonly)
The HTTP response that triggered this authentication error.
89 90 91 |
# File 'lib/signet/errors.rb', line 89 def response @response end |