Exception: VCAP::SubprocessTimeoutError

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

Overview

Command ran longer than allowed

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#commandObject (readonly)

Returns the value of attribute command.



24
25
26
# File 'lib/vcap/subprocess.rb', line 24

def command
  @command
end

#stderrObject (readonly)

Returns the value of attribute stderr.



24
25
26
# File 'lib/vcap/subprocess.rb', line 24

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



24
25
26
# File 'lib/vcap/subprocess.rb', line 24

def stdout
  @stdout
end

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



33
34
35
# File 'lib/vcap/subprocess.rb', line 33

def to_s
  "ERROR: Command '#{@command}' timed out"
end