Exception: Qiniu::BlockSizeNotMathchError

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

Instance Method Summary collapse

Constructor Details

#initialize(fpath, block_index, offset, restsize, block_size) ⇒ BlockSizeNotMathchError

Returns a new instance of BlockSizeNotMathchError.



58
59
60
61
62
63
64
# File 'lib/qiniu/exceptions.rb', line 58

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