1<?php
2/**
3 * This file is part of FPDI
4 *
5 * @package   setasign\Fpdi
6 * @copyright Copyright (c) 2020 Setasign GmbH & Co. KG (https://www.setasign.com)
7 * @license   http://opensource.org/licenses/mit-license The MIT License
8 */
9
10namespace setasign\Fpdi\PdfParser\CrossReference;
11
12use setasign\Fpdi\PdfParser\PdfParserException;
13
14/**
15 * Exception used by the CrossReference and Reader classes.
16 *
17 * @package setasign\Fpdi\PdfParser\CrossReference
18 */
19class 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}
81