123456789_123456789_123456789_123456789_123456789_

Exception: Gem::Net::ReadTimeout

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, ::Gem::Timeout::Error, RuntimeError
Instance Chain:
self, ::Gem::Timeout::Error, RuntimeError
Inherits: Gem::Timeout::Error
Defined in: lib/rubygems/vendor/net-protocol/lib/net/protocol.rb

Overview

ReadTimeout, a subclass of ::Gem::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/rubygems/vendor/net-protocol/lib/net/protocol.rb', line 81

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

Instance Attribute Details

#io (readonly)

[ GitHub ]

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

attr_reader :io

Instance Method Details

#message

[ GitHub ]

  
# File 'lib/rubygems/vendor/net-protocol/lib/net/protocol.rb', line 86

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