Exception: Leash::ConnectionRequiredError

Inherits:
Error
  • Object
show all
Defined in:
lib/leash/errors.rb

Overview

403 from the platform — provider not connected for the current user.

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 = "Integration not connected.", **opts) ⇒ ConnectionRequiredError

Returns a new instance of ConnectionRequiredError.



75
76
77
78
# File 'lib/leash/errors.rb', line 75

def initialize(message = "Integration not connected.", **opts)
  opts[:code] ||= "INTEGRATION_NOT_ENABLED"
  super(message, **opts)
end