Exception: CommandUtils::NonZeroStatus
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- CommandUtils::NonZeroStatus
- Defined in:
- lib/command_utils/non_zero_status.rb
Overview
Raised when executed command does not return 0
Instance Attribute Summary collapse
-
#command ⇒ Object
Command as passed to Process#spawn.
-
#status ⇒ Object
Command exit status.
Instance Method Summary collapse
-
#initialize(message, status, command) ⇒ NonZeroStatus
constructor
A new instance of NonZeroStatus.
Constructor Details
#initialize(message, status, command) ⇒ NonZeroStatus
Returns a new instance of NonZeroStatus.
11 12 13 14 |
# File 'lib/command_utils/non_zero_status.rb', line 11 def initialize , status, command super @status, @command = status, command end |
Instance Attribute Details
#command ⇒ Object
Command as passed to Process#spawn
9 10 11 |
# File 'lib/command_utils/non_zero_status.rb', line 9 def command @command end |
#status ⇒ Object
Command exit status
7 8 9 |
# File 'lib/command_utils/non_zero_status.rb', line 7 def status @status end |