Exception: Cic::Exception::APIError
- Defined in:
- lib/cic/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#http_status ⇒ Object
Returns the value of attribute http_status.
-
#response_body ⇒ Object
Returns the value of attribute response_body.
Instance Method Summary collapse
-
#initialize(http_status, response_body, error_info = nil) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(http_status, response_body, error_info = nil) ⇒ APIError
Returns a new instance of APIError.
9 10 11 12 |
# File 'lib/cic/errors.rb', line 9 def initialize(http_status, response_body, error_info = nil) = " [HTTP #{http_status}] #{response_body}" super() end |
Instance Attribute Details
#http_status ⇒ Object
Returns the value of attribute http_status.
7 8 9 |
# File 'lib/cic/errors.rb', line 7 def http_status @http_status end |
#response_body ⇒ Object
Returns the value of attribute response_body.
7 8 9 |
# File 'lib/cic/errors.rb', line 7 def response_body @response_body end |