Exception: Qiniu::FileSeekReadError

Inherits:
Exception
  • Object
show all
Defined in:
lib/qiniu/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(fpath, block_index, seek_pos, read_length, result_length) ⇒ FileSeekReadError

Returns a new instance of FileSeekReadError.



48
49
50
51
52
53
54
# File 'lib/qiniu/exceptions.rb', line 48

def initialize(fpath, block_index, seek_pos, read_length, result_length)
  msg =  "Reading file: #{fpath}, "
  msg += "at block index: #{block_index}. "
  msg += "Expected seek_pos:#{seek_pos} and read_length:#{read_length}, "
  msg += "but got result_length: #{result_length}."
  super(msg)
end