Subversion-Projekte lars-tiefland.laravel_shop

Revision

Zur aktuellen Revision | Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 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
 
8
declare(strict_types=1);
9
 
10
namespace Nette\Utils;
11
 
12
 
13
/**
14
 * The exception that is thrown when an image error occurs.
15
 */
16
class ImageException extends \Exception
17
{
18
}
19
 
20
 
21
/**
22
 * The exception that indicates invalid image file.
23
 */
24
class UnknownImageFileException extends ImageException
25
{
26
}
27
 
28
 
29
/**
30
 * The exception that indicates error of JSON encoding/decoding.
31
 */
32
class JsonException extends \Exception
33
{
34
}
35
 
36
 
37
/**
38
 * The exception that indicates error of the last Regexp execution.
39
 */
40
class RegexpException extends \Exception
41
{
42
	public const MESSAGES = [
43
		PREG_INTERNAL_ERROR => 'Internal error',
44
		PREG_BACKTRACK_LIMIT_ERROR => 'Backtrack limit was exhausted',
45
		PREG_RECURSION_LIMIT_ERROR => 'Recursion limit was exhausted',
46
		PREG_BAD_UTF8_ERROR => 'Malformed UTF-8 data',
47
		PREG_BAD_UTF8_OFFSET_ERROR => 'Offset didn\'t correspond to the begin of a valid UTF-8 code point',
48
		6 => 'Failed due to limited JIT stack space', // PREG_JIT_STACKLIMIT_ERROR
49
	];
50
}
51
 
52
 
53
/**
54
 * The exception that indicates assertion error.
55
 */
56
class AssertionException extends \Exception
57
{
58
}