Exception: MisarReach::AuthError
- Defined in:
- lib/misar_reach/errors.rb
Overview
401 / 403 — missing, invalid, or insufficiently-scoped mrk_ key.
Instance Attribute Summary
Attributes inherited from ApiError
#body, #code, #retry_after, #status
Instance Method Summary collapse
-
#initialize(message = "Unauthorized", status: 401, **opts) ⇒ AuthError
constructor
A new instance of AuthError.
Constructor Details
#initialize(message = "Unauthorized", status: 401, **opts) ⇒ AuthError
Returns a new instance of AuthError.
17 18 19 |
# File 'lib/misar_reach/errors.rb', line 17 def initialize( = "Unauthorized", status: 401, **opts) super(status, , code: opts[:code] || "unauthorized", **opts.reject { |k, _| k == :code }) end |