W3cubDocs

/Ruby 2.7

class Net::ReadTimeout

Parent:
Timeout::Error

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

Attributes

io[R]

Public Class Methods

new(io = nil) Show source
# File lib/net/protocol.rb, line 79
def initialize(io = nil)
  @io = io
end

Public Instance Methods

message() Show source
# File lib/net/protocol.rb, line 84
def message
  msg = super
  if @io
    msg = "#{msg} with #{@io.inspect}"
  end
  msg
end
Calls superclass method Exception#message

Ruby Core © 1993–2017 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.