Exception: Bolt::RunFailure
Instance Attribute Summary collapse
-
#result_set ⇒ Object
readonly
Returns the value of attribute result_set.
Attributes inherited from Error
#details, #error_code, #issue_code, #kind
Instance Method Summary collapse
-
#initialize(result_set, action, object) ⇒ RunFailure
constructor
A new instance of RunFailure.
Methods inherited from Error
#msg, #to_h, #to_json, #to_puppet_error, unknown_plan, unknown_task
Constructor Details
#initialize(result_set, action, object) ⇒ RunFailure
Returns a new instance of RunFailure.
45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/bolt/error.rb', line 45 def initialize(result_set, action, object) details = { 'action' => action, 'object' => object, 'result_set' => result_set } = "Plan aborted: #{action} '#{object}' failed on #{result_set.error_set.length} nodes" super(, 'bolt/run-failure', details) @result_set = result_set @error_code = 2 end |
Instance Attribute Details
#result_set ⇒ Object (readonly)
Returns the value of attribute result_set.
43 44 45 |
# File 'lib/bolt/error.rb', line 43 def result_set @result_set end |