Exception: Cortex::Exceptions::CortexAPIError
- Inherits:
-
CortexError
- Object
- StandardError
- CortexError
- Cortex::Exceptions::CortexAPIError
- Defined in:
- lib/cortex/exceptions.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#http_status ⇒ Object
Returns the value of attribute http_status.
Instance Method Summary collapse
-
#initialize(message = 'Internal server error', http_status = :internal_server_error) ⇒ CortexAPIError
constructor
A new instance of CortexAPIError.
Constructor Details
#initialize(message = 'Internal server error', http_status = :internal_server_error) ⇒ CortexAPIError
Returns a new instance of CortexAPIError.
10 11 12 13 |
# File 'lib/cortex/exceptions.rb', line 10 def initialize( = 'Internal server error', http_status = :internal_server_error) @http_status = http_status super() end |
Instance Attribute Details
#http_status ⇒ Object
Returns the value of attribute http_status.
8 9 10 |
# File 'lib/cortex/exceptions.rb', line 8 def http_status @http_status end |