Exception: Leash::KeyNotDeclaredError

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

Overview

404 on env.get — env-var key isn’t declared / not found.

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 = "Key is not declared.", **opts) ⇒ KeyNotDeclaredError

Returns a new instance of KeyNotDeclaredError.



83
84
85
86
# File 'lib/leash/errors.rb', line 83

def initialize(message = "Key is not declared.", **opts)
  opts[:code] ||= "KEY_NOT_DECLARED"
  super(message, **opts)
end