1 | <?php |
||
23 | class PropertyAccessException extends Exception |
||
24 | { |
||
25 | /** |
||
26 | * The type of access for the error message |
||
27 | * |
||
28 | * Overridden by child classes to provide detailed error feedback. |
||
29 | * Example values might be 'read' or 'write'. |
||
30 | */ |
||
31 | const ACCESS_TYPE = 'access'; |
||
32 | |||
33 | /** |
||
34 | * The type of error for the error message |
||
35 | * |
||
36 | * Overridden by child classes to provide detailed error feedback. |
||
37 | * Example values might be 'Permission denied' or 'Property does not |
||
38 | * exist' |
||
39 | */ |
||
40 | const ERROR_REASON = 'Generic Failure'; |
||
41 | |||
42 | /** |
||
43 | * Creates the exception, populating its error message from class |
||
44 | * and property names |
||
45 | * |
||
46 | * @param string $class The classname accessed |
||
47 | * @param string $property The property accessed |
||
48 | * @param Throwable $previous The exception which caused this |
||
49 | */ |
||
50 | 7 | public function __construct |
|
65 | } |
||
66 |