Exception: Subprocess::CommunicateTimeout
- Inherits:
-
StandardError
- Object
- StandardError
- Subprocess::CommunicateTimeout
- Defined in:
- lib/subprocess.rb
Overview
Error class representing a timeout during a call to communicate
Instance Attribute Summary collapse
-
#stderr ⇒ String
readonly
Content read from stderr before the timeout.
-
#stdout ⇒ String
readonly
Content read from stdout before the timeout.
Instance Method Summary collapse
-
#initialize(cmd, stdout, stderr) ⇒ CommunicateTimeout
constructor
A new instance of CommunicateTimeout.
Constructor Details
#initialize(cmd, stdout, stderr) ⇒ CommunicateTimeout
Returns a new instance of CommunicateTimeout.
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
#stderr ⇒ String (readonly)
Returns Content read from stderr before the timeout.
193 194 195 |
# File 'lib/subprocess.rb', line 193 def stderr @stderr end |
#stdout ⇒ String (readonly)
Returns Content read from stdout before the timeout.
190 191 192 |
# File 'lib/subprocess.rb', line 190 def stdout @stdout end |