Exception: HalfShell::ExecuteError
- Inherits:
-
StandardError
- Object
- StandardError
- HalfShell::ExecuteError
- Defined in:
- lib/half_shell.rb
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) ⇒ ExecuteError
constructor
A new instance of ExecuteError.
Constructor Details
#initialize(command, status) ⇒ ExecuteError
Returns a new instance of ExecuteError.
10 11 12 13 |
# File 'lib/half_shell.rb', line 10 def initialize(command, status) @command, @status = command, status super "command <#{@command}> failed with status <#{@status}>" end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
8 9 10 |
# File 'lib/half_shell.rb', line 8 def command @command end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
8 9 10 |
# File 'lib/half_shell.rb', line 8 def status @status end |