Exception: Qiniu::FileSeekReadError
- Defined in:
- lib/qiniu/exceptions.rb
Instance Method Summary collapse
-
#initialize(fpath, block_index, seek_pos, read_length, result_length) ⇒ FileSeekReadError
constructor
A new instance of FileSeekReadError.
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 |