Total Complexity | 1 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class JsonErrorException extends MonzoException |
||
6 | { |
||
7 | /** |
||
8 | * The raw input given to json_decode. |
||
9 | * |
||
10 | * @var mixed |
||
11 | */ |
||
12 | public $raw; |
||
13 | |||
14 | /** |
||
15 | * The raw error from {@see json_last_error_msg()}. |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | public $error; |
||
20 | |||
21 | /** |
||
22 | * The status message for this error. |
||
23 | * |
||
24 | * @var int |
||
25 | */ |
||
26 | protected static $status = 500; |
||
27 | |||
28 | /** |
||
29 | * JsonErrorException constructor. |
||
30 | * |
||
31 | * @param string $error |
||
32 | * @param mixed $raw |
||
33 | */ |
||
34 | public function __construct(string $error, $raw) |
||
42 |