Exception: Gem::Net::ReadTimeout
- Inherits:
-
Timeout::Error
- Object
- RuntimeError
- Timeout::Error
- Gem::Net::ReadTimeout
- 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.
Instance Attribute Summary collapse
-
#io ⇒ Object
readonly
Returns the value of attribute io.
Instance Method Summary collapse
-
#initialize(io = nil) ⇒ ReadTimeout
constructor
A new instance of ReadTimeout.
- #message ⇒ Object
Methods inherited from Timeout::Error
Constructor Details
#initialize(io = nil) ⇒ ReadTimeout
Returns a new instance of ReadTimeout.
81 82 83 |
# File 'lib/rubygems/vendor/net-protocol/lib/net/protocol.rb', line 81 def initialize(io = nil) @io = io end |
Instance Attribute Details
#io ⇒ Object (readonly)
Returns the value of attribute io.
84 85 86 |
# File 'lib/rubygems/vendor/net-protocol/lib/net/protocol.rb', line 84 def io @io end |
Instance Method Details
#message ⇒ Object
86 87 88 89 90 91 92 |
# File 'lib/rubygems/vendor/net-protocol/lib/net/protocol.rb', line 86 def msg = super if @io msg = "#{msg} with #{@io.inspect}" end msg end |