Exception: Sendly::NotFoundError
- Defined in:
- lib/sendly/errors.rb
Overview
Raised when the requested resource is not found
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.
61 62 63 |
# File 'lib/sendly/errors.rb', line 61 def initialize( = "Resource not found") super(, code: "NOT_FOUND", status_code: 404) end |