Exception: Leash::UnauthorizedError

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

Methods inherited from Error

#connect_url, #message, #to_s

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(message = "Unauthorized.", **opts)
  opts[:code] ||= "UNAUTHORIZED"
  super(message, **opts)
end