Exception: ApiExceptions::UnprocessableEntity

Inherits:
BaseException
  • Object
show all
Defined in:
app/lib/api_exceptions/unprocessable_entity.rb

Instance Attribute Summary

Attributes inherited from BaseException

#data, #status

Instance Method Summary collapse

Methods inherited from BaseException

#as_json

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 = message
  @status = status
end