Exception: TheCompaniesAPI::Error
- Inherits:
-
StandardError
- Object
- StandardError
- TheCompaniesAPI::Error
- Defined in:
- lib/thecompaniesapi/error.rb,
lib/thecompaniesapi/error.rb
Direct Known Subclasses
APIError, ClientError, ConnectionError, ServerError, TimeoutError
Defined Under Namespace
Classes: APIError, ClientError, ConnectionError, ServerError, TimeoutError
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 = nil, status = nil, response_body = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, status = nil, response_body = nil) ⇒ Error
Returns a new instance of Error.
5 6 7 8 9 |
# File 'lib/thecompaniesapi/error.rb', line 5 def initialize( = nil, 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.
3 4 5 |
# File 'lib/thecompaniesapi/error.rb', line 3 def response_body @response_body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
3 4 5 |
# File 'lib/thecompaniesapi/error.rb', line 3 def status @status end |