Exception: Bolt::Node::EnvironmentVarError
- Defined in:
- lib/bolt/node/errors.rb
Instance Attribute Summary
Attributes inherited from BaseError
Attributes inherited from Error
#details, #error_code, #issue_code
Instance Method Summary collapse
-
#initialize(var, val) ⇒ EnvironmentVarError
constructor
A new instance of EnvironmentVarError.
- #kind ⇒ Object
Methods inherited from Error
#msg, #to_h, #to_json, #to_puppet_error, unknown_plan, unknown_task
Constructor Details
#initialize(var, val) ⇒ EnvironmentVarError
Returns a new instance of EnvironmentVarError.
34 35 36 37 |
# File 'lib/bolt/node/errors.rb', line 34 def initialize(var, val) = "Could not set environment variable '#{var}' to '#{val}'" super(, 'ENVVAR_ERROR') end |
Instance Method Details
#kind ⇒ Object
39 40 41 |
# File 'lib/bolt/node/errors.rb', line 39 def kind 'puppetlabs.tasks/environment-var-error' end |