class Qiniu::FileSeekReadError

Public Class Methods

new(fpath, block_index, seek_pos, read_length, result_length) click to toggle source
Calls superclass method
# File lib/qiniu/exceptions.rb, line 47
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