Exception: Hikerapi::APIError
- Defined in:
- lib/hikerapi/error.rb
Instance Attribute Summary collapse
-
#response_body ⇒ Object
readonly
Returns the value of attribute response_body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status: nil, response_body: nil) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(message, status: nil, response_body: nil) ⇒ APIError
Returns a new instance of APIError.
11 12 13 14 15 |
# File 'lib/hikerapi/error.rb', line 11 def initialize(, status: nil, response_body: nil) super() @status = status @response_body = response_body end |
Instance Attribute Details
#response_body ⇒ Object (readonly)
Returns the value of attribute response_body.
9 10 11 |
# File 'lib/hikerapi/error.rb', line 9 def response_body @response_body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
9 10 11 |
# File 'lib/hikerapi/error.rb', line 9 def status @status end |