Exception: ApiExceptions::ResourceNotFound

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

Instance Attribute Summary

Attributes inherited from BaseException

#data, #status

Instance Method Summary collapse

Methods inherited from BaseException

#as_json

Constructor Details

#initialize(message: 'Resource not found', status: :not_found) ⇒ ResourceNotFound

Returns a new instance of ResourceNotFound.



5
6
7
8
# File 'app/lib/api_exceptions/resource_not_found.rb', line 5

def initialize(message: 'Resource not found', status: :not_found)
  @data = message
  @status = status
end