Exception: Colore::Errors::APIError
- Inherits:
-
StandardError
- Object
- StandardError
- Colore::Errors::APIError
- Defined in:
- lib/colore/errors.rb
Overview
Base class for API errors
Direct Known Subclasses
Instance Attribute Summary collapse
-
#http_code ⇒ Object
Returns the value of attribute http_code.
-
#response_body ⇒ Object
Returns the value of attribute response_body.
-
#rsp_backtrace ⇒ Object
Returns the value of attribute rsp_backtrace.
Instance Method Summary collapse
-
#initialize(http_code, message, rsp_backtrace = nil, response_body = nil) ⇒ APIError
constructor
Initializes the API error.
Constructor Details
#initialize(http_code, message, rsp_backtrace = nil, response_body = nil) ⇒ APIError
Initializes the API error.
24 25 26 27 28 29 |
# File 'lib/colore/errors.rb', line 24 def initialize(http_code, , rsp_backtrace = nil, response_body = nil) super() @http_code = http_code @response_body = response_body @rsp_backtrace = rsp_backtrace end |
Instance Attribute Details
#http_code ⇒ Object
Returns the value of attribute http_code.
16 17 18 |
# File 'lib/colore/errors.rb', line 16 def http_code @http_code end |
#response_body ⇒ Object
Returns the value of attribute response_body.
16 17 18 |
# File 'lib/colore/errors.rb', line 16 def response_body @response_body end |
#rsp_backtrace ⇒ Object
Returns the value of attribute rsp_backtrace.
16 17 18 |
# File 'lib/colore/errors.rb', line 16 def rsp_backtrace @rsp_backtrace end |