Exception: Cotta::CommandError
- Inherits:
-
StandardError
- Object
- StandardError
- Cotta::CommandError
- Defined in:
- lib/cotta/impl/command_error.rb
Overview
Error class that will be thrown if a system command exit with an error code
Instance Attribute Summary collapse
-
#output ⇒ Object
readonly
Returns the value of attribute output.
-
#proc_status ⇒ Object
readonly
Returns the value of attribute proc_status.
Instance Method Summary collapse
-
#initialize(proc_status, output) ⇒ CommandError
constructor
A new instance of CommandError.
Constructor Details
#initialize(proc_status, output) ⇒ CommandError
Returns a new instance of CommandError.
8 9 10 11 |
# File 'lib/cotta/impl/command_error.rb', line 8 def initialize(proc_status, output) @proc_status = proc_status @output = output end |
Instance Attribute Details
#output ⇒ Object (readonly)
Returns the value of attribute output.
6 7 8 |
# File 'lib/cotta/impl/command_error.rb', line 6 def output @output end |
#proc_status ⇒ Object (readonly)
Returns the value of attribute proc_status.
6 7 8 |
# File 'lib/cotta/impl/command_error.rb', line 6 def proc_status @proc_status end |