Total Complexity | 2 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class JsonException extends RuntimeException |
||
11 | { |
||
12 | public static $error=[ |
||
13 | JSON_ERROR_NONE=>'no errors', |
||
14 | JSON_ERROR_DEPTH=>'maximum stack depth exceeded', |
||
15 | JSON_ERROR_STATE_MISMATCH=>'underflow or the modes mismatch', |
||
16 | JSON_ERROR_CTRL_CHAR=>'unexpected control character found', |
||
17 | JSON_ERROR_SYNTAX=>'syntax error, malformed JSON', |
||
18 | JSON_ERROR_UTF8=>'malformed UTF-8 characters, possibly incorrectly encoded', |
||
19 | ]; |
||
20 | |||
21 | public function __construct($message = "", $code = 0, Throwable $previous = null) |
||
29 |