Exception: Rbop::Shell::CommandFailed
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Rbop::Shell::CommandFailed
- Defined in:
- lib/rbop/shell.rb
Overview
Exception raised when a command fails
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(command, status) ⇒ CommandFailed
constructor
A new instance of CommandFailed.
Constructor Details
#initialize(command, status) ⇒ CommandFailed
Returns a new instance of CommandFailed.
12 13 14 15 16 |
# File 'lib/rbop/shell.rb', line 12 def initialize(command, status) @command = command @status = status super("Command failed with status #{status}: #{command}") end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
10 11 12 |
# File 'lib/rbop/shell.rb', line 10 def command @command end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
10 11 12 |
# File 'lib/rbop/shell.rb', line 10 def status @status end |