1 | <?php |
||
7 | final class ValidationException extends \RuntimeException |
||
8 | { |
||
9 | /** |
||
10 | * @var ConstraintViolationListInterface |
||
11 | */ |
||
12 | private $constraintViolationList; |
||
13 | |||
14 | /** |
||
15 | * ValidationException constructor. |
||
16 | * |
||
17 | * @param ConstraintViolationListInterface $constraintViolationList |
||
18 | * @param string $message |
||
19 | * @param int $code |
||
20 | * @param \Exception|null $previous |
||
21 | */ |
||
22 | public function __construct(ConstraintViolationListInterface $constraintViolationList, $message = '', $code = 0, \Exception $previous = null) |
||
28 | |||
29 | /** |
||
30 | * Gets constraint violations as a list. |
||
31 | * |
||
32 | * @return ConstraintViolationListInterface |
||
33 | */ |
||
34 | public function getConstraintViolationList() |
||
38 | } |
||
39 |