Exception: Bolt::InvalidPlanResult

Inherits:
Error
  • Object
show all
Defined in:
lib/bolt/error.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(plan_name, result_str) ⇒ InvalidPlanResult

Returns a new instance of InvalidPlanResult.



155
156
157
158
159
160
# File 'lib/bolt/error.rb', line 155

def initialize(plan_name, result_str)
  super("Plan #{plan_name} returned an invalid result: #{result_str}",
        'bolt/invalid-plan-result',
        { 'plan_name' => plan_name,
          'result_string' => result_str })
end