Exception: Expect::WriteTimeout

Inherits:
IOError
  • Object
show all
Defined in:
lib/expect.rb

Overview

已被底层接受的字节不可撤回;调用方可据此只处理尚未写出的后缀。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = "write timed out", bytes_written: 0) ⇒ WriteTimeout

Returns a new instance of WriteTimeout.



33
34
35
36
# File 'lib/expect.rb', line 33

def initialize(message = "write timed out", bytes_written: 0)
  @bytes_written = bytes_written
  super(message)
end

Instance Attribute Details

#bytes_written ⇒ Object (readonly)

Returns the value of attribute bytes_written.



31
32
33
# File 'lib/expect.rb', line 31

def bytes_written
  @bytes_written
end