Exception: VCAP::SubprocessReadError

Inherits:
SubprocessError show all
Defined in:
lib/vcap/subprocess.rb

Overview

Failure reading from stdin/stdout

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(failed_iostr, command, stdout, stderr) ⇒ SubprocessReadError

Returns a new instance of SubprocessReadError.



42
43
44
45
46
47
# File 'lib/vcap/subprocess.rb', line 42

def initialize(failed_iostr, command, stdout, stderr)
  @failed_iostr = failed_iostr
  @command = command
  @stdout  = stdout
  @stderr  = stderr
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



40
41
42
# File 'lib/vcap/subprocess.rb', line 40

def command
  @command
end

#stderrObject (readonly)

Returns the value of attribute stderr.



40
41
42
# File 'lib/vcap/subprocess.rb', line 40

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



40
41
42
# File 'lib/vcap/subprocess.rb', line 40

def stdout
  @stdout
end

Instance Method Details

#to_sObject



49
50
51
# File 'lib/vcap/subprocess.rb', line 49

def to_s
  "ERROR: Failed reading from #{@failed_iostr} while executing '#{@command}'"
end