Exception: CommandFailure

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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_codeObject (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_signalObject (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

#stderrObject (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_sObject



15
16
17
# File 'lib/rbvppc/command_failure.rb', line 15

def to_s
    return @stderr
end