1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (http://nette.org)
5: *
6: * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
7: *
8: * For the full copyright and license information, please view
9: * the file license.txt that was distributed with this source code.
10: */
11:
12: namespace Nette;
13:
14: use Nette;
15:
16:
17:
18: /**
19: * The exception that is thrown when the value of an argument is
20: * outside the allowable range of values as defined by the invoked method.
21: */
22: class ArgumentOutOfRangeException extends \InvalidArgumentException
23: {
24: }
25:
26:
27:
28: /**
29: * The exception that is thrown when a method call is invalid for the object's
30: * current state, method has been invoked at an illegal or inappropriate time.
31: */
32: class InvalidStateException extends \RuntimeException
33: {
34: }
35:
36:
37:
38: /**
39: * The exception that is thrown when a requested method or operation is not implemented.
40: */
41: class NotImplementedException extends \LogicException
42: {
43: }
44:
45:
46:
47: /**
48: * The exception that is thrown when an invoked method is not supported. For scenarios where
49: * it is sometimes possible to perform the requested operation, see InvalidStateException.
50: */
51: class NotSupportedException extends \LogicException
52: {
53: }
54:
55:
56:
57: /**
58: * The exception that is thrown when a requested method or operation is deprecated.
59: */
60: class DeprecatedException extends NotSupportedException
61: {
62: }
63:
64:
65:
66: /**
67: * The exception that is thrown when accessing a class member (property or method) fails.
68: */
69: class MemberAccessException extends \LogicException
70: {
71: }
72:
73:
74:
75: /**
76: * The exception that is thrown when an I/O error occurs.
77: */
78: class IOException extends \RuntimeException
79: {
80: }
81:
82:
83:
84: /**
85: * The exception that is thrown when accessing a file that does not exist on disk.
86: */
87: class FileNotFoundException extends IOException
88: {
89: }
90:
91:
92:
93: /**
94: * The exception that is thrown when part of a file or directory cannot be found.
95: */
96: class DirectoryNotFoundException extends IOException
97: {
98: }
99:
100:
101:
102: /**
103: * The exception that is thrown when an argument does not match with the expected value.
104: */
105: class InvalidArgumentException extends \InvalidArgumentException
106: {
107: }
108:
109:
110:
111: /**
112: * The exception that is thrown when an illegal index was requested.
113: */
114: class OutOfRangeException extends \OutOfRangeException
115: {
116: }
117:
118:
119:
120: /**
121: * The exception that is thrown when a value (typically returned by function) does not match with the expected value.
122: */
123: class UnexpectedValueException extends \UnexpectedValueException
124: {
125: }
126:
127:
128:
129: /**
130: * The exception that is thrown when static class is instantiated.
131: */
132: class StaticClassException extends \LogicException
133: {
134: }
135:
136:
137:
138: /**
139: * The exception that indicates errors that can not be recovered from. Execution of
140: * the script should be halted.
141: */
142:
143: class FatalErrorException extends \ErrorException
144: {
145:
146: public function __construct($message, $code, $severity, $file, $line, $context, \Exception $previous = NULL)
147: {
148: parent::__construct($message, $code, $severity, $file, $line, $previous);
149: $this->context = $context;
150: }
151:
152: }
153:
154:
155: