Exception: VCAP::SubprocessStatusError
- Inherits:
-
SubprocessError
- Object
- StandardError
- SubprocessError
- VCAP::SubprocessStatusError
- Defined in:
- lib/vcap/subprocess.rb
Overview
Command exited with unexpected status code
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(command, stdout, stderr, status) ⇒ SubprocessStatusError
constructor
A new instance of SubprocessStatusError.
- #to_s ⇒ Object
Constructor Details
#initialize(command, stdout, stderr, status) ⇒ SubprocessStatusError
Returns a new instance of SubprocessStatusError.
10 11 12 13 14 15 |
# File 'lib/vcap/subprocess.rb', line 10 def initialize(command, stdout, stderr, status) @command = command @status = status @stdout = stdout @stderr = stderr end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
8 9 10 |
# File 'lib/vcap/subprocess.rb', line 8 def command @command end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
8 9 10 |
# File 'lib/vcap/subprocess.rb', line 8 def status @status end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
8 9 10 |
# File 'lib/vcap/subprocess.rb', line 8 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
8 9 10 |
# File 'lib/vcap/subprocess.rb', line 8 def stdout @stdout end |
Instance Method Details
#to_s ⇒ Object
17 18 19 |
# File 'lib/vcap/subprocess.rb', line 17 def to_s "ERROR: Command '#{@command}' exited with status '#{status.exitstatus}'" end |