Exception: Arkaan::Utils::Errors::NotFound
- Defined in:
- lib/arkaan/utils/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 HTTPError
#action, #error, #field, #status
Instance Method Summary collapse
-
#initialize(field:, action:, error:) ⇒ NotFound
constructor
A new instance of NotFound.
Constructor Details
#initialize(field:, action:, error:) ⇒ NotFound
Returns a new instance of NotFound.
8 9 10 |
# File 'lib/arkaan/utils/errors/not_found.rb', line 8 def initialize (field:, action:, error:) super(action, field, error, 404) end |