Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 39 and 311] [Versions 39 and 400] [Versions 39 and 401] [Versions 39 and 402] [Versions 39 and 403]

   1  <?php
   2  /**
   3   * This file is part of FPDI
   4   *
   5   * @package   setasign\Fpdi
   6   * @copyright Copyright (c) 2019 Setasign - Jan Slabon (https://www.setasign.com)
   7   * @license   http://opensource.org/licenses/mit-license The MIT License
   8   */
   9  
  10  namespace setasign\Fpdi\PdfParser\CrossReference;
  11  
  12  use setasign\Fpdi\PdfParser\PdfParserException;
  13  
  14  /**
  15   * Exception used by the CrossReference and Reader classes.
  16   *
  17   * @package setasign\Fpdi\PdfParser\CrossReference
  18   */
  19  class CrossReferenceException extends PdfParserException
  20  {
  21      /**
  22       * @var int
  23       */
  24      const INVALID_DATA = 0x0101;
  25  
  26      /**
  27       * @var int
  28       */
  29      const XREF_MISSING = 0x0102;
  30  
  31      /**
  32       * @var int
  33       */
  34      const ENTRIES_TOO_LARGE = 0x0103;
  35  
  36      /**
  37       * @var int
  38       */
  39      const ENTRIES_TOO_SHORT = 0x0104;
  40  
  41      /**
  42       * @var int
  43       */
  44      const NO_ENTRIES = 0x0105;
  45  
  46      /**
  47       * @var int
  48       */
  49      const NO_TRAILER_FOUND = 0x0106;
  50  
  51      /**
  52       * @var int
  53       */
  54      const NO_STARTXREF_FOUND = 0x0107;
  55  
  56      /**
  57       * @var int
  58       */
  59      const NO_XREF_FOUND = 0x0108;
  60  
  61      /**
  62       * @var int
  63       */
  64      const UNEXPECTED_END = 0x0109;
  65  
  66      /**
  67       * @var int
  68       */
  69      const OBJECT_NOT_FOUND = 0x010A;
  70  
  71      /**
  72       * @var int
  73       */
  74      const COMPRESSED_XREF = 0x010B;
  75  
  76      /**
  77       * @var int
  78       */
  79      const ENCRYPTED = 0x010C;
  80  }