Exception: Process::Pipeline::CommandError
- Inherits:
-
StandardError
- Object
- StandardError
- Process::Pipeline::CommandError
- Defined in:
- lib/process/pipeline/command_error.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#step ⇒ Object
readonly
Returns the value of attribute step.
Instance Method Summary collapse
-
#initialize(step, status) ⇒ CommandError
constructor
A new instance of CommandError.
Constructor Details
#initialize(step, status) ⇒ CommandError
Returns a new instance of CommandError.
24 25 26 27 28 29 |
# File 'lib/process/pipeline/command_error.rb', line 24 def initialize(step, status) @step = step @status = status super "Command #{step.command.inspect} exited with status #{@status.to_i}!" end |
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
32 33 34 |
# File 'lib/process/pipeline/command_error.rb', line 32 def status @status end |
#step ⇒ Object (readonly)
Returns the value of attribute step.
31 32 33 |
# File 'lib/process/pipeline/command_error.rb', line 31 def step @step end |