Exception: VCAP::SubprocessReadError
- Inherits:
-
SubprocessError
- Object
- StandardError
- SubprocessError
- VCAP::SubprocessReadError
- Defined in:
- lib/vcap/subprocess.rb
Overview
Failure reading from stdin/stdout
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(failed_iostr, command, stdout, stderr) ⇒ SubprocessReadError
constructor
A new instance of SubprocessReadError.
- #to_s ⇒ Object
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
#command ⇒ Object (readonly)
Returns the value of attribute command.
40 41 42 |
# File 'lib/vcap/subprocess.rb', line 40 def command @command end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
40 41 42 |
# File 'lib/vcap/subprocess.rb', line 40 def stderr @stderr end |
#stdout ⇒ Object (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_s ⇒ Object
49 50 51 |
# File 'lib/vcap/subprocess.rb', line 49 def to_s "ERROR: Failed reading from #{@failed_iostr} while executing '#{@command}'" end |