Exception: AnswerLayer::OAuthError
- Defined in:
- lib/answerlayer/errors.rb
Overview
OAuth-shaped API errors.
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#error_description ⇒ Object
readonly
Returns the value of attribute error_description.
Attributes inherited from ApiError
Instance Method Summary collapse
-
#initialize(message, error: nil, error_description: nil, status: nil, body: nil, headers: nil) ⇒ OAuthError
constructor
A new instance of OAuthError.
Constructor Details
#initialize(message, error: nil, error_description: nil, status: nil, body: nil, headers: nil) ⇒ OAuthError
Returns a new instance of OAuthError.
47 48 49 50 51 |
# File 'lib/answerlayer/errors.rb', line 47 def initialize(, error: nil, error_description: nil, status: nil, body: nil, headers: nil) @error = error @error_description = error_description super(, status: status, body: body, headers: headers) end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
45 46 47 |
# File 'lib/answerlayer/errors.rb', line 45 def error @error end |
#error_description ⇒ Object (readonly)
Returns the value of attribute error_description.
45 46 47 |
# File 'lib/answerlayer/errors.rb', line 45 def error_description @error_description end |