Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 400 and 401]

(no description)

File Size: 59 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

CorruptFileException:: (3 methods):
  missingChunk()
  unexpectedIndex()
  unexpectedSize()


Class: CorruptFileException  - X-Ref

missingChunk($expectedIndex)   X-Ref
Thrown when a chunk is not found for an expected index.

return: self
param: integer $expectedIndex Expected index number

unexpectedIndex($index, $expectedIndex)   X-Ref
Thrown when a chunk has an unexpected index number.

return: self
param: integer $index         Actual index number (i.e. "n" field)
param: integer $expectedIndex Expected index number

unexpectedSize($size, $expectedSize)   X-Ref
Thrown when a chunk has an unexpected data size.

return: self
param: integer $size         Actual size (i.e. "data" field length)
param: integer $expectedSize Expected size