1 | <?php declare(strict_types=1); |
||
14 | class ValidatorException extends \RuntimeException |
||
15 | { |
||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $field; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $errorMessage; |
||
25 | |||
26 | /** |
||
27 | * @param string $field |
||
28 | * @param string $errorMessage |
||
29 | * @param \Exception|null $prev |
||
30 | */ |
||
31 | 2 | public function __construct($field, $errorMessage, \Exception $prev = null) |
|
38 | |||
39 | 1 | public function getField() |
|
43 | |||
44 | 1 | public function getErrorMessage() |
|
48 | } |
||
49 |