PHP Class Phalcon\Db\Adapter\MongoDB\GridFS\Exception\CorruptFileException

Inheritance: extends Phalcon\Db\Adapter\MongoDB\Exception\RuntimeException
Datei anzeigen Open project: phalcon/incubator Class Usage Examples

Public Methods

Method Description
missingChunk ( integer $expectedIndex ) : self Thrown when a chunk is not found for an expected index.
unexpectedIndex ( integer $index, integer $expectedIndex ) : self Thrown when a chunk has an unexpected index number.
unexpectedSize ( integer $size, integer $expectedSize ) : self Thrown when a chunk has an unexpected data size.

Method Details

missingChunk() public static method

Thrown when a chunk is not found for an expected index.
public static missingChunk ( integer $expectedIndex ) : self
$expectedIndex integer Expected index number
return self

unexpectedIndex() public static method

Thrown when a chunk has an unexpected index number.
public static unexpectedIndex ( integer $index, integer $expectedIndex ) : self
$index integer Actual index number (i.e. "n" field)
$expectedIndex integer Expected index number
return self

unexpectedSize() public static method

Thrown when a chunk has an unexpected data size.
public static unexpectedSize ( integer $size, integer $expectedSize ) : self
$size integer Actual size (i.e. "data" field length)
$expectedSize integer Expected size
return self