Exception: Virtuatable::API::Errors::NotFound
- Defined in:
- lib/virtuatable/api/errors/not_found.rb
Overview
A not found error occurs when a user tries to reach a resource that does not exist.
Instance Attribute Summary
Attributes inherited from Base
#action, #error, #field, #status
Instance Method Summary collapse
-
#initialize(field:, error:) ⇒ NotFound
constructor
A new instance of NotFound.
Methods inherited from Base
Constructor Details
#initialize(field:, error:) ⇒ NotFound
Returns a new instance of NotFound.
9 10 11 |
# File 'lib/virtuatable/api/errors/not_found.rb', line 9 def initialize(field:, error:) super(field: field, error: error, status: 404) end |