PluginProbe
Packeta / 2.0.9
Packeta v2.0.9
2.3.2 2.3.1 trunk 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3.0 1.3.1 1.3.2 1.4 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 All 56 releases
packeta / deps / nette / utils / src / Utils / exceptions.php

exceptions.php in Packeta 2.0.9, at deps/nette/utils/src/Utils/exceptions.php

41 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * This file is part of the Nette Framework (https://nette.org)
5 * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
6 */
7 declare (strict_types=1);
8 namespace Packetery\Nette\Utils;
9
10 /**
11 * The exception that is thrown when an image error occurs.
12 */
13 class ImageException extends \Exception
14 {
15 }
16 /**
17 * The exception that indicates invalid image file.
18 */
19 class UnknownImageFileException extends ImageException
20 {
21 }
22 /**
23 * The exception that indicates error of JSON encoding/decoding.
24 */
25 class JsonException extends \Exception
26 {
27 }
28 /**
29 * The exception that indicates error of the last Regexp execution.
30 */
31 class RegexpException extends \Exception
32 {
33 public const MESSAGES = [\PREG_INTERNAL_ERROR => 'Internal error', \PREG_BACKTRACK_LIMIT_ERROR => 'Backtrack limit was exhausted', \PREG_RECURSION_LIMIT_ERROR => 'Recursion limit was exhausted', \PREG_BAD_UTF8_ERROR => 'Malformed UTF-8 data', \PREG_BAD_UTF8_OFFSET_ERROR => 'Offset didn\'t correspond to the begin of a valid UTF-8 code point', 6 => 'Failed due to limited JIT stack space'];
34 }
35 /**
36 * The exception that indicates assertion error.
37 */
38 class AssertionException extends \Exception
39 {
40 }
41