| Class | Mongo::Error::UnexpectedChunkLength |
| In: |
lib/mongo/error/unexpected_chunk_length.rb
|
| Parent: | Error |
Raised if the next chunk when reading from a GridFSBucket does not have the expected length.
@since 2.1.0
Create the new exception.
@example Create the new exception.
Mongo::Error::UnexpectedChunkLength.new(expected_len, chunk)
@param [ Integer ] expected_len The expected length. @param [ Grid::File::Chunk ] chunk The chunk read from GridFS.
@since 2.1.0