Exception: Leash::UnauthorizedError
- Defined in:
- lib/leash/errors.rb
Overview
401 from the platform — missing / invalid credentials.
Instance Attribute Summary
Attributes inherited from Error
#action, #cause, #code, #see_also, #status
Instance Method Summary collapse
-
#initialize(message = "Unauthorized.", **opts) ⇒ UnauthorizedError
constructor
A new instance of UnauthorizedError.
Methods inherited from Error
Constructor Details
#initialize(message = "Unauthorized.", **opts) ⇒ UnauthorizedError
Returns a new instance of UnauthorizedError.
91 92 93 94 |
# File 'lib/leash/errors.rb', line 91 def initialize( = "Unauthorized.", **opts) opts[:code] ||= "UNAUTHORIZED" super(, **opts) end |