Exception: Cortex::Exceptions::CortexAPIError

Inherits:
CortexError
  • Object
show all
Defined in:
lib/cortex/exceptions.rb

Direct Known Subclasses

NotEmptyError, ResourceConsumed

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message = 'Internal server error', http_status = :internal_server_error)
  @http_status = http_status
  super(message)
end

Instance Attribute Details

#http_statusObject

Returns the value of attribute http_status.



8
9
10
# File 'lib/cortex/exceptions.rb', line 8

def http_status
  @http_status
end