Exception: VCAP::SubprocessTimeoutError
- Inherits:
-
SubprocessError
- Object
- StandardError
- SubprocessError
- VCAP::SubprocessTimeoutError
- Defined in:
- lib/vcap/subprocess.rb
Overview
Command ran longer than allowed
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.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize(timeout, command, stdout, stderr) ⇒ SubprocessTimeoutError
constructor
A new instance of SubprocessTimeoutError.
- #to_s ⇒ Object
Constructor Details
#initialize(timeout, command, stdout, stderr) ⇒ SubprocessTimeoutError
Returns a new instance of SubprocessTimeoutError.
26 27 28 29 30 31 |
# File 'lib/vcap/subprocess.rb', line 26 def initialize(timeout, command, stdout, stderr) @command = command @timeout = timeout @stdout = stdout @stderr = stderr end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
24 25 26 |
# File 'lib/vcap/subprocess.rb', line 24 def command @command end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
24 25 26 |
# File 'lib/vcap/subprocess.rb', line 24 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
24 25 26 |
# File 'lib/vcap/subprocess.rb', line 24 def stdout @stdout end |
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
24 25 26 |
# File 'lib/vcap/subprocess.rb', line 24 def timeout @timeout end |
Instance Method Details
#to_s ⇒ Object
33 34 35 |
# File 'lib/vcap/subprocess.rb', line 33 def to_s "ERROR: Command '#{@command}' timed out" end |