Exception: Gem::Net::WriteTimeout
- Inherits:
-
Timeout::Error
- Object
- RuntimeError
- Timeout::Error
- Gem::Net::WriteTimeout
- Defined in:
- lib/rubygems/vendor/net-protocol/lib/net/protocol.rb
Overview
WriteTimeout, a subclass of Gem::Timeout::Error, is raised if a chunk of the response cannot be written within the write_timeout. Not raised on Windows.
Instance Attribute Summary collapse
-
#io ⇒ Object
readonly
Returns the value of attribute io.
Instance Method Summary collapse
-
#initialize(io = nil) ⇒ WriteTimeout
constructor
A new instance of WriteTimeout.
- #message ⇒ Object
Methods inherited from Timeout::Error
Constructor Details
#initialize(io = nil) ⇒ WriteTimeout
Returns a new instance of WriteTimeout.
100 101 102 |
# File 'lib/rubygems/vendor/net-protocol/lib/net/protocol.rb', line 100 def initialize(io = nil) @io = io end |
Instance Attribute Details
#io ⇒ Object (readonly)
Returns the value of attribute io.
103 104 105 |
# File 'lib/rubygems/vendor/net-protocol/lib/net/protocol.rb', line 103 def io @io end |
Instance Method Details
#message ⇒ Object
105 106 107 108 109 110 111 |
# File 'lib/rubygems/vendor/net-protocol/lib/net/protocol.rb', line 105 def msg = super if @io msg = "#{msg} with #{@io.inspect}" end msg end |