123456789_123456789_123456789_123456789_123456789_

Class: Net::ReadTimeout

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Timeout::Error
Instance Chain:
self, Timeout::Error
Inherits: Timeout::Error
  • Object
Defined in: lib/net/protocol.rb

Overview

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

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(io = nil) ⇒ ReadTimeout

[ GitHub ]

  
# File 'lib/net/protocol.rb', line 84

def initialize(io = nil)
  @io = io
end

Instance Attribute Details

#io (readonly)

[ GitHub ]

  
# File 'lib/net/protocol.rb', line 87

attr_reader :io

Instance Method Details

#message

[ GitHub ]

  
# File 'lib/net/protocol.rb', line 89

def message
  msg = super
  if @io
    msg = "#{msg} with #{@io.inspect}"
  end
  msg
end