Exception: EnvControl::WrongValueError

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

Constant Summary collapse

MSG =
"Wrong value: %s (%s) for %s contract (%s environment)"

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



42
43
44
45
46
47
48
49
# File 'lib/env_control/errors.rb', line 42

def details(context)
  MSG % [
    context[:value].inspect,
    context[:value].class.inspect,
    context[:env_var],
    context[:environment_name] || "any"
  ]
end