Exception: CommandFailure
- Inherits:
-
StandardError
- Object
- StandardError
- CommandFailure
- Defined in:
- lib/rbvppc/command_failure.rb
Overview
Authors: Christopher M Wood (<[email protected]>) John F Hutchinson (<[email protected]) © Copyright IBM Corporation 2015.
LICENSE: MIT (opensource.org/licenses/MIT)
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
-
#exit_signal ⇒ Object
readonly
Returns the value of attribute exit_signal.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
Instance Method Summary collapse
-
#initialize(stderr, exit_code, exit_signal) ⇒ CommandFailure
constructor
A new instance of CommandFailure.
- #to_s ⇒ Object
Constructor Details
#initialize(stderr, exit_code, exit_signal) ⇒ CommandFailure
Returns a new instance of CommandFailure.
11 12 13 |
# File 'lib/rbvppc/command_failure.rb', line 11 def initialize(stderr, exit_code, exit_signal) @stderr, @exit_code, @exit_signal = stderr, exit_code, exit_signal end |
Instance Attribute Details
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code.
9 10 11 |
# File 'lib/rbvppc/command_failure.rb', line 9 def exit_code @exit_code end |
#exit_signal ⇒ Object (readonly)
Returns the value of attribute exit_signal.
9 10 11 |
# File 'lib/rbvppc/command_failure.rb', line 9 def exit_signal @exit_signal end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
9 10 11 |
# File 'lib/rbvppc/command_failure.rb', line 9 def stderr @stderr end |
Instance Method Details
#to_s ⇒ Object
15 16 17 |
# File 'lib/rbvppc/command_failure.rb', line 15 def to_s return @stderr end |