Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class ValidationException extends \Exception |
||
9 | { |
||
10 | public JsonSchemaValidator $validator; |
||
11 | |||
12 | public int $status = Response::HTTP_UNPROCESSABLE_ENTITY; |
||
13 | |||
14 | 4 | public function __construct(JsonSchemaValidator $validator) |
|
15 | { |
||
16 | 4 | parent::__construct('The given data was invalid.'); |
|
17 | 4 | $this->validator = $validator; |
|
18 | 4 | } |
|
19 | |||
20 | 1 | public function report() |
|
22 | // Do not report this exception. |
||
23 | 1 | } |
|
24 | |||
25 | 1 | public function render() |
|
28 | } |
||
29 | } |