123456789_123456789_123456789_123456789_123456789_

Class: Net::WriteTimeout

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

WriteTimeout, a subclass of Timeout::Error, is raised if a chunk of the response cannot be written within the write_timeout. Not raised on Windows.

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(io = nil) ⇒ WriteTimeout

[ GitHub ]

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

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

Instance Attribute Details

#io (readonly)

[ GitHub ]

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

attr_reader :io

Instance Method Details

#message

[ GitHub ]

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

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