class Qiniu::BlockSizeNotMathchError
Public Class Methods
new(fpath, block_index, offset, restsize, block_size)
click to toggle source
Calls superclass method
# File lib/qiniu/exceptions.rb, line 57 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