Exception: Kabk::NotFoundError
- Defined in:
- lib/kabk/errors.rb
Overview
Error raised when a requested resource or record cannot be found (HTTP 404)
Instance Attribute Summary
Attributes inherited from ApiError
Instance Method Summary collapse
-
#initialize(message = "Resource not found") ⇒ NotFoundError
constructor
A new instance of NotFoundError.
Methods inherited from ApiError
Constructor Details
#initialize(message = "Resource not found") ⇒ NotFoundError
Returns a new instance of NotFoundError.
57 58 59 |
# File 'lib/kabk/errors.rb', line 57 def initialize( = "Resource not found") super(, code: "NOT_FOUND", http_status: 404) end |