Exception: MisarReach::NotFoundError

Inherits:
ApiError
  • Object
show all
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

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(message = "Not found", **opts)
  super(404, message, code: opts[:code] || "not_found", **opts.reject { |k, _| k == :code })
end