Exception: Leash::Env::NoApiKeyError

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

Instance Attribute Summary

Attributes inherited from Leash::Error

#action, #cause, #code, #see_also, #status

Instance Method Summary collapse

Methods inherited from Leash::Error

#connect_url, #message, #to_s

Constructor Details

#initializeNoApiKeyError

Returns a new instance of NoApiKeyError.



155
156
157
158
159
160
161
162
# File 'lib/leash/env.rb', line 155

def initialize
  super(
    "LEASH_API_KEY is required to call leash.env.get().",
    code: "NO_API_KEY",
    action: "Set LEASH_API_KEY in your environment or pass api_key: ... to Leash.new.",
    see_also: "https://leash.build/dashboard/organization"
  )
end