Exception: HookSniff::NotFoundError
- Defined in:
- lib/hooksniff/errors.rb
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = "Resource not found") ⇒ NotFoundError
constructor
A new instance of NotFoundError.
Constructor Details
#initialize(message = "Resource not found") ⇒ NotFoundError
Returns a new instance of NotFoundError.
21 22 23 |
# File 'lib/hooksniff/errors.rb', line 21 def initialize( = "Resource not found") super(, status_code: 404, error_code: "NOT_FOUND") end |