Skip to Content Skip to Search

ReadTimeout, a subclass of Timeout::Error, is raised if a chunk of the response cannot be read within the read_timeout.

Methods
M
N

Attributes

[R] io

Class Public methods

new(io = nil)

# File ruby/lib/net/protocol.rb, line 81
def initialize(io = nil)
  @io = io
end

Instance Public methods

message()

# File ruby/lib/net/protocol.rb, line 86
def message
  msg = super
  if @io
    msg = "#{msg} with #{@io.inspect}"
  end
  msg
end