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)


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

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



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

def stderr
  @stderr
end

#stdoutString (readonly)

Returns Content read from stdout before the timeout.

Returns:

  • (String)

    Content read from stdout before the timeout



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

def stdout
  @stdout
end