|
11 | 11 |
|
12 | 12 |
|
13 | 13 | /** |
14 | | - * The exception that is thrown when the value of an argument is |
15 | | - * outside the allowable range of values as defined by the invoked method. |
| 14 | + * The value is outside the allowed range. |
16 | 15 | */ |
17 | 16 | class ArgumentOutOfRangeException extends \InvalidArgumentException |
18 | 17 | { |
19 | 18 | } |
20 | 19 |
|
21 | 20 |
|
22 | 21 | /** |
23 | | - * The exception that is thrown when a method call is invalid for the object's |
24 | | - * current state, method has been invoked at an illegal or inappropriate time. |
| 22 | + * The object is in a state that does not allow the requested operation. |
25 | 23 | */ |
26 | 24 | class InvalidStateException extends \RuntimeException |
27 | 25 | { |
28 | 26 | } |
29 | 27 |
|
30 | 28 |
|
31 | 29 | /** |
32 | | - * The exception that is thrown when a requested method or operation is not implemented. |
| 30 | + * The requested feature is not implemented. |
33 | 31 | */ |
34 | 32 | class NotImplementedException extends \LogicException |
35 | 33 | { |
36 | 34 | } |
37 | 35 |
|
38 | 36 |
|
39 | 37 | /** |
40 | | - * The exception that is thrown when an invoked method is not supported. For scenarios where |
41 | | - * it is sometimes possible to perform the requested operation, see InvalidStateException. |
| 38 | + * The requested operation is not supported. |
42 | 39 | */ |
43 | 40 | class NotSupportedException extends \LogicException |
44 | 41 | { |
45 | 42 | } |
46 | 43 |
|
47 | 44 |
|
48 | 45 | /** |
49 | | - * The exception that is thrown when a requested method or operation is deprecated. |
| 46 | + * The requested feature is deprecated and no longer available. |
50 | 47 | */ |
51 | 48 | class DeprecatedException extends NotSupportedException |
52 | 49 | { |
53 | 50 | } |
54 | 51 |
|
55 | 52 |
|
56 | 53 | /** |
57 | | - * The exception that is thrown when accessing a class member (property or method) fails. |
| 54 | + * Cannot access the requested class property or method. |
58 | 55 | */ |
59 | 56 | class MemberAccessException extends \Error |
60 | 57 | { |
61 | 58 | } |
62 | 59 |
|
63 | 60 |
|
64 | 61 | /** |
65 | | - * The exception that is thrown when an I/O error occurs. |
| 62 | + * Failed to read from or write to a file or stream. |
66 | 63 | */ |
67 | 64 | class IOException extends \RuntimeException |
68 | 65 | { |
69 | 66 | } |
70 | 67 |
|
71 | 68 |
|
72 | 69 | /** |
73 | | - * The exception that is thrown when accessing a file that does not exist on disk. |
| 70 | + * The requested file does not exist. |
74 | 71 | */ |
75 | 72 | class FileNotFoundException extends IOException |
76 | 73 | { |
77 | 74 | } |
78 | 75 |
|
79 | 76 |
|
80 | 77 | /** |
81 | | - * The exception that is thrown when part of a file or directory cannot be found. |
| 78 | + * The requested directory does not exist. |
82 | 79 | */ |
83 | 80 | class DirectoryNotFoundException extends IOException |
84 | 81 | { |
85 | 82 | } |
86 | 83 |
|
87 | 84 |
|
88 | 85 | /** |
89 | | - * The exception that is thrown when an argument does not match with the expected value. |
| 86 | + * The provided argument has invalid type or format. |
90 | 87 | */ |
91 | 88 | class InvalidArgumentException extends \InvalidArgumentException |
92 | 89 | { |
93 | 90 | } |
94 | 91 |
|
95 | 92 |
|
96 | 93 | /** |
97 | | - * The exception that is thrown when an illegal index was requested. |
| 94 | + * The requested array or collection index does not exist. |
98 | 95 | */ |
99 | 96 | class OutOfRangeException extends \OutOfRangeException |
100 | 97 | { |
101 | 98 | } |
102 | 99 |
|
103 | 100 |
|
104 | 101 | /** |
105 | | - * The exception that is thrown when a value (typically returned by function) does not match with the expected value. |
| 102 | + * The returned value has unexpected type or format. |
106 | 103 | */ |
107 | 104 | class UnexpectedValueException extends \UnexpectedValueException |
108 | 105 | { |
|
0 commit comments