Exception: MisarReach::NotFoundError
- Defined in:
- lib/misar_reach/errors.rb
Overview
404 — resource not found.
Instance Attribute Summary
Attributes inherited from ApiError
#body, #code, #retry_after, #status
Instance Method Summary collapse
-
#initialize(message = "Not found", **opts) ⇒ NotFoundError
constructor
A new instance of NotFoundError.
Constructor Details
#initialize(message = "Not found", **opts) ⇒ NotFoundError
Returns a new instance of NotFoundError.
24 25 26 |
# File 'lib/misar_reach/errors.rb', line 24 def initialize( = "Not found", **opts) super(404, , code: opts[:code] || "not_found", **opts.reject { |k, _| k == :code }) end |