Exception: ApiExceptions::ResourceNotFound
- Inherits:
-
BaseException
- Object
- StandardError
- BaseException
- ApiExceptions::ResourceNotFound
- Defined in:
- app/lib/api_exceptions/resource_not_found.rb
Instance Attribute Summary
Attributes inherited from BaseException
Instance Method Summary collapse
-
#initialize(message: 'Resource not found', status: :not_found) ⇒ ResourceNotFound
constructor
A new instance of ResourceNotFound.
Methods inherited from BaseException
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 = @status = status end |