Exception: Cortex::Exceptions::ResourceConsumed

Inherits:
ApiError show all
Defined in:
lib/cortex/exceptions.rb

Instance Attribute Summary

Attributes inherited from ApiError

#http_status

Instance Method Summary collapse

Constructor Details

#initialize(message = 'Resource is in use by another resource and cannot be deleted', http_status = :unprocessable_entity) ⇒ ResourceConsumed

Returns a new instance of ResourceConsumed.



23
24
25
# File 'lib/cortex/exceptions.rb', line 23

def initialize(message = 'Resource is in use by another resource and cannot be deleted', http_status = :unprocessable_entity)
  super(message)
end