PluginProbe
Packeta / trunk
Packeta vtrunk
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 / exceptions.php

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

85 lines 2.2 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;
9
10 /**
11 * The exception that is thrown when the value of an argument is
12 * outside the allowable range of values as defined by the invoked method.
13 */
14 class ArgumentOutOfRangeException extends \InvalidArgumentException
15 {
16 }
17 /**
18 * The exception that is thrown when a method call is invalid for the object's
19 * current state, method has been invoked at an illegal or inappropriate time.
20 */
21 class InvalidStateException extends \RuntimeException
22 {
23 }
24 /**
25 * The exception that is thrown when a requested method or operation is not implemented.
26 */
27 class NotImplementedException extends \LogicException
28 {
29 }
30 /**
31 * The exception that is thrown when an invoked method is not supported. For scenarios where
32 * it is sometimes possible to perform the requested operation, see InvalidStateException.
33 */
34 class NotSupportedException extends \LogicException
35 {
36 }
37 /**
38 * The exception that is thrown when a requested method or operation is deprecated.
39 */
40 class DeprecatedException extends NotSupportedException
41 {
42 }
43 /**
44 * The exception that is thrown when accessing a class member (property or method) fails.
45 */
46 class MemberAccessException extends \Error
47 {
48 }
49 /**
50 * The exception that is thrown when an I/O error occurs.
51 */
52 class IOException extends \RuntimeException
53 {
54 }
55 /**
56 * The exception that is thrown when accessing a file that does not exist on disk.
57 */
58 class FileNotFoundException extends IOException
59 {
60 }
61 /**
62 * The exception that is thrown when part of a file or directory cannot be found.
63 */
64 class DirectoryNotFoundException extends IOException
65 {
66 }
67 /**
68 * The exception that is thrown when an argument does not match with the expected value.
69 */
70 class InvalidArgumentException extends \InvalidArgumentException
71 {
72 }
73 /**
74 * The exception that is thrown when an illegal index was requested.
75 */
76 class OutOfRangeException extends \OutOfRangeException
77 {
78 }
79 /**
80 * The exception that is thrown when a value (typically returned by function) does not match with the expected value.
81 */
82 class UnexpectedValueException extends \UnexpectedValueException
83 {
84 }
85