1 | <?php |
||
21 | class UnauthorizedException extends Exception |
||
22 | { |
||
23 | |||
24 | /** |
||
25 | * UnauthorizedException constructor. |
||
26 | * |
||
27 | * @param string $message the string of the error message |
||
28 | * @param int $code The code of the error |
||
29 | * @param \Exception|null $previous the previous exception. |
||
30 | */ |
||
31 | public function __construct($message = null, $code = 403, $previous = null) |
||
38 | |||
39 | /** |
||
40 | * File setter |
||
41 | * |
||
42 | * @param string $file file name |
||
43 | * @return void |
||
44 | */ |
||
45 | public function setFile($file = '') |
||
49 | |||
50 | /** |
||
51 | * Line setter |
||
52 | * |
||
53 | * @param int $line line of the code |
||
54 | * @return void |
||
55 | */ |
||
56 | public function setLine($line = 0) |
||
60 | } |
||
61 |