Exception: Bolt::PAL::YamlPlan::Step::StepError

Inherits:
Error
  • Object
show all
Defined in:
lib/bolt/pal/yaml_plan/step.rb

Instance Attribute Summary

Attributes inherited from Error

#details, #error_code, #issue_code, #kind

Instance Method Summary collapse

Methods inherited from Error

#add_filelineno, #msg, #to_h, #to_json, #to_puppet_error, unknown_plan, unknown_task

Constructor Details

#initialize(message, name, step_number) ⇒ StepError

Returns a new instance of StepError.



25
26
27
28
29
30
# File 'lib/bolt/pal/yaml_plan/step.rb', line 25

def initialize(message, name, step_number)
  identifier = name ? name.inspect : "number #{step_number}"
  error      = "Parse error in step #{identifier}: \n #{message}"

  super(error, 'bolt/invalid-plan')
end