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
#add_filelineno, #msg, #to_h, #to_json, #to_puppet_error, unknown_plan, unknown_task
Constructor Details
#initialize(var, val) ⇒ EnvironmentVarError
Returns a new instance of EnvironmentVarError.
45 46 47 48 |
# File 'lib/bolt/node/errors.rb', line 45 def initialize(var, val) = "Could not set environment variable '#{var}' to '#{val}'" super(, 'ENVVAR_ERROR') end |
Instance Method Details
#kind ⇒ Object
50 51 52 |
# File 'lib/bolt/node/errors.rb', line 50 def kind 'puppetlabs.tasks/environment-var-error' end |