Exception: Bolt::ParallelFailure
- Defined in:
- lib/bolt/error.rb
Instance Attribute Summary
Attributes inherited from Error
#details, #error_code, #issue_code, #kind
Instance Method Summary collapse
-
#initialize(results, failed_indices) ⇒ ParallelFailure
constructor
A new instance of ParallelFailure.
Methods inherited from Error
#add_filelineno, #msg, #to_h, #to_json, #to_puppet_error, unknown_plan, unknown_task
Constructor Details
#initialize(results, failed_indices) ⇒ ParallelFailure
Returns a new instance of ParallelFailure.
119 120 121 122 123 124 125 126 127 128 129 |
# File 'lib/bolt/error.rb', line 119 def initialize(results, failed_indices) details = { 'action' => 'parallelize', 'failed_indices' => failed_indices, 'results' => results } = "parallel block failed on #{failed_indices.length} target" += "s" unless failed_indices.length == 1 super(, 'bolt/parallel-failure', details) @error_code = 2 end |