Exception: Bolt::ApplyFailure
- Inherits:
-
RunFailure
- Object
- RuntimeError
- Error
- RunFailure
- Bolt::ApplyFailure
- Defined in:
- lib/bolt/error.rb
Instance Attribute Summary
Attributes inherited from RunFailure
Attributes inherited from Error
#details, #error_code, #issue_code, #kind
Instance Method Summary collapse
-
#initialize(result_set) ⇒ ApplyFailure
constructor
A new instance of ApplyFailure.
- #to_s ⇒ Object
Methods inherited from Error
#add_filelineno, #msg, #to_h, #to_json, #to_puppet_error, unknown_plan, unknown_task
Constructor Details
#initialize(result_set) ⇒ ApplyFailure
Returns a new instance of ApplyFailure.
98 99 100 101 |
# File 'lib/bolt/error.rb', line 98 def initialize(result_set) super(result_set, 'apply', 'catalog') @kind = 'bolt/apply-failure' end |
Instance Method Details
#to_s ⇒ Object
103 104 105 |
# File 'lib/bolt/error.rb', line 103 def to_s result_set.select(&:error_hash).map { |result| result.error_hash['msg'] }.join("\n") end |