Exception: ShellTest::ShellMethods::Agent::ReadError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/shell_test/shell_methods/agent.rb

Overview

Raised when Agent reads fail or timeout.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, buffer) ⇒ ReadError

Returns a new instance of ReadError.



126
127
128
129
# File 'lib/shell_test/shell_methods/agent.rb', line 126

def initialize(message, buffer)
  @buffer = buffer
  super message
end

Instance Attribute Details

#bufferObject (readonly)

The buffer containing whatever had been read at the time of error.



124
125
126
# File 'lib/shell_test/shell_methods/agent.rb', line 124

def buffer
  @buffer
end