1 | <?php |
||
5 | class ClientExceptions extends \Exception |
||
6 | { |
||
7 | protected $reason; |
||
8 | |||
9 | 1 | public function __construct($message = "", $code = 0, $reason = null) |
|
15 | |||
16 | /** |
||
17 | * |
||
18 | * @param $message |
||
19 | * @param $reason |
||
20 | * |
||
21 | * @return ClientExceptions |
||
22 | */ |
||
23 | 1 | public static function accessDenied($message, $reason = null) |
|
27 | |||
28 | /** |
||
29 | * |
||
30 | * @param $message |
||
31 | * @param $reason |
||
32 | * |
||
33 | * @return ClientExceptions |
||
34 | */ |
||
35 | public static function recordNotFound($message, $reason = null) |
||
39 | |||
40 | /** |
||
41 | * |
||
42 | * @param $message |
||
43 | * @param $reason |
||
44 | * |
||
45 | * @return ClientExceptions |
||
46 | */ |
||
47 | public static function invalidArgument($message, $reason = null) |
||
51 | } |
||
52 |