1: <?php
2:
3: declare(strict_types=1);
4:
5: /*
6: * This file has been auto generated by Jane,
7: *
8: * Do no edit it directly.
9: */
10:
11: namespace NxSys\Library\Clients\Brex\API\Team\Runtime\Normalizer;
12:
13: use Symfony\Component\Validator\ConstraintViolationListInterface;
14:
15: class ValidationException extends \RuntimeException
16: {
17: /** @var ConstraintViolationListInterface */
18: private $violationList;
19:
20: public function __construct(ConstraintViolationListInterface $violationList)
21: {
22: $this->violationList = $violationList;
23: parent::__construct(sprintf('Model validation failed with %d errors.', $violationList->count()), 400);
24: }
25:
26: public function getViolationList(): ConstraintViolationListInterface
27: {
28: return $this->violationList;
29: }
30: }
31: