Exception: MisarReach::AuthError

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

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(message = "Unauthorized", status: 401, **opts)
  super(status, message, code: opts[:code] || "unauthorized", **opts.reject { |k, _| k == :code })
end