Exception: EnvControl::NonSymbolicKeyError

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

Constant Summary collapse

MSG =
"Not a Symbol key %s (%s) for %s contract"

Instance Method Summary collapse

Methods inherited from Error

#initialize

Constructor Details

This class inherits a constructor from EnvControl::Error

Instance Method Details

#details(context) ⇒ Object



55
56
57
58
59
60
61
# File 'lib/env_control/errors.rb', line 55

def details(context)
  MSG % [
    context[:key].inspect,
    context[:key].class.inspect,
    context[:env_var],
  ]
end