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: namespace Nette;
9:
10:
11: /**
12: * The exception that is thrown when the value of an argument is
13: * outside the allowable range of values as defined by the invoked method.
14: */
15: class ArgumentOutOfRangeException extends \InvalidArgumentException
16: {
17: }
18:
19:
20: /**
21: * The exception that is thrown when a method call is invalid for the object's
22: * current state, method has been invoked at an illegal or inappropriate time.
23: */
24: class InvalidStateException extends \RuntimeException
25: {
26: }
27:
28:
29: /**
30: * The exception that is thrown when a requested method or operation is not implemented.
31: */
32: class NotImplementedException extends \LogicException
33: {
34: }
35:
36:
37: /**
38: * The exception that is thrown when an invoked method is not supported. For scenarios where
39: * it is sometimes possible to perform the requested operation, see InvalidStateException.
40: */
41: class NotSupportedException extends \LogicException
42: {
43: }
44:
45:
46: /**
47: * The exception that is thrown when a requested method or operation is deprecated.
48: */
49: class DeprecatedException extends NotSupportedException
50: {
51: }
52:
53:
54: /**
55: * The exception that is thrown when accessing a class member (property or method) fails.
56: */
57: class MemberAccessException extends \LogicException
58: {
59: }
60:
61:
62: /**
63: * The exception that is thrown when an I/O error occurs.
64: */
65: class IOException extends \RuntimeException
66: {
67: }
68:
69:
70: /**
71: * The exception that is thrown when accessing a file that does not exist on disk.
72: */
73: class FileNotFoundException extends IOException
74: {
75: }
76:
77:
78: /**
79: * The exception that is thrown when part of a file or directory cannot be found.
80: */
81: class DirectoryNotFoundException extends IOException
82: {
83: }
84:
85:
86: /**
87: * The exception that is thrown when an argument does not match with the expected value.
88: */
89: class InvalidArgumentException extends \InvalidArgumentException
90: {
91: }
92:
93:
94: /**
95: * The exception that is thrown when an illegal index was requested.
96: */
97: class OutOfRangeException extends \OutOfRangeException
98: {
99: }
100:
101:
102: /**
103: * The exception that is thrown when a value (typically returned by function) does not match with the expected value.
104: */
105: class UnexpectedValueException extends \UnexpectedValueException
106: {
107: }
108:
109:
110: /**
111: * The exception that is thrown when static class is instantiated.
112: */
113: class StaticClassException extends \LogicException
114: {
115: }
116:
117:
118: namespace Nette\Utils;
119:
120:
121: /**
122: * The exception that is thrown when an image error occurs.
123: */
124: class ImageException extends \Exception
125: {
126: }
127:
128:
129: /**
130: * The exception that indicates invalid image file.
131: */
132: class UnknownImageFileException extends ImageException
133: {
134: }
135:
136:
137: /**
138: * The exception that indicates error of JSON encoding/decoding.
139: */
140: class JsonException extends \Exception
141: {
142: }
143:
144:
145: /**
146: * The exception that indicates error of the last Regexp execution.
147: */
148: class RegexpException extends \Exception
149: {
150: }
151:
152:
153: /**
154: * The exception that indicates assertion error.
155: */
156: class AssertionException extends \Exception
157: {
158: }
159: