Exception: Leash::KeyNotDeclaredError
- 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
-
#initialize(message = "Key is not declared.", **opts) ⇒ KeyNotDeclaredError
constructor
A new instance of KeyNotDeclaredError.
Methods inherited from Error
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( = "Key is not declared.", **opts) opts[:code] ||= "KEY_NOT_DECLARED" super(, **opts) end |