Exception: Subprocess::CommunicateTimeout

Inherits:
StandardError
  • Object
show all
Defined in:
lib/subprocess.rb

Overview

Error class representing a timeout during a call to `communicate`

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cmd, stdout, stderr) ⇒ CommunicateTimeout

Returns a new instance of CommunicateTimeout.

Parameters:

  • cmd (Array<String>)
  • stdout (String)
  • stderr (String)

197
198
199
200
201
202
# File 'lib/subprocess.rb', line 197

def initialize(cmd, stdout, stderr)
  @stdout = stdout
  @stderr = stderr

  super("Timeout communicating with `#{cmd.join(' ')}`")
end

Instance Attribute Details

#stderrString (readonly)

Returns Content read from stderr before the timeout.

Returns:

  • (String)

    Content read from stderr before the timeout


192
193
194
# File 'lib/subprocess.rb', line 192

def stderr
  @stderr
end

#stdoutString (readonly)

Returns Content read from stdout before the timeout.

Returns:

  • (String)

    Content read from stdout before the timeout


189
190
191
# File 'lib/subprocess.rb', line 189

def stdout
  @stdout
end