1 | <?php |
||
7 | class InvalidJSON extends Exception |
||
8 | { |
||
9 | /** |
||
10 | * Create a new InvalidJson exception instance. |
||
11 | * |
||
12 | * @param int $error |
||
13 | * @return $this |
||
14 | */ |
||
15 | public static function create($error) |
||
19 | |||
20 | /** |
||
21 | * Get the error message. |
||
22 | * |
||
23 | * @param int $error |
||
24 | * @return string |
||
25 | */ |
||
26 | private static function getErrorMessage($error) |
||
43 | } |
||
44 |