Exception: Bolt::ContainerFailure
- Defined in:
- lib/bolt/error.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Attributes inherited from Error
#details, #error_code, #issue_code, #kind
Instance Method Summary collapse
-
#initialize(result) ⇒ ContainerFailure
constructor
A new instance of ContainerFailure.
Methods inherited from Error
#add_filelineno, #msg, #to_h, #to_json, #to_puppet_error, unknown_plan, unknown_task
Constructor Details
#initialize(result) ⇒ ContainerFailure
Returns a new instance of ContainerFailure.
67 68 69 70 71 72 73 74 75 76 |
# File 'lib/bolt/error.rb', line 67 def initialize(result) details = { 'value' => result.value, 'object' => result.object } = "Running container '#{result.object}' failed." super(, 'bolt/container-failure', details) @result = result @error_code = 2 end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
65 66 67 |
# File 'lib/bolt/error.rb', line 65 def result @result end |