Exception: ApiExceptions::UnprocessableEntity
- Inherits:
-
BaseException
- Object
- StandardError
- BaseException
- ApiExceptions::UnprocessableEntity
- Defined in:
- app/lib/api_exceptions/unprocessable_entity.rb
Instance Attribute Summary
Attributes inherited from BaseException
Instance Method Summary collapse
-
#initialize(message: 'Cannot process request', status: :unprocessable_entity) ⇒ UnprocessableEntity
constructor
A new instance of UnprocessableEntity.
Methods inherited from BaseException
Constructor Details
#initialize(message: 'Cannot process request', status: :unprocessable_entity) ⇒ UnprocessableEntity
Returns a new instance of UnprocessableEntity.
4 5 6 7 |
# File 'app/lib/api_exceptions/unprocessable_entity.rb', line 4 def initialize(message: 'Cannot process request', status: :unprocessable_entity) @data = @status = status end |