Exception: AnswerLayer::OAuthError

Inherits:
ApiError show all
Defined in:
lib/answerlayer/errors.rb

Overview

OAuth-shaped API errors.

Instance Attribute Summary collapse

Attributes inherited from ApiError

#body, #headers, #status

Instance Method Summary collapse

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(message, error: nil, error_description: nil, status: nil, body: nil, headers: nil)
  @error = error
  @error_description = error_description
  super(message, status: status, body: body, headers: headers)
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



45
46
47
# File 'lib/answerlayer/errors.rb', line 45

def error
  @error
end

#error_descriptionObject (readonly)

Returns the value of attribute error_description.



45
46
47
# File 'lib/answerlayer/errors.rb', line 45

def error_description
  @error_description
end