Exception: HookBridge::NotFoundError
- Defined in:
- lib/hookbridge/errors.rb
Overview
Raised when a resource is not found (404)
Instance Attribute Summary
Attributes inherited from Error
#code, #request_id, #status_code
Instance Method Summary collapse
-
#initialize(message = "Resource not found", **kwargs) ⇒ NotFoundError
constructor
A new instance of NotFoundError.
Constructor Details
#initialize(message = "Resource not found", **kwargs) ⇒ NotFoundError
Returns a new instance of NotFoundError.
25 26 27 |
# File 'lib/hookbridge/errors.rb', line 25 def initialize( = "Resource not found", **kwargs) super(, code: "NOT_FOUND", status_code: 404, **kwargs) end |