1 | <?php |
||
26 | class BadJsonRequestException extends \RuntimeException |
||
27 | { |
||
28 | /** |
||
29 | * @var string[] |
||
30 | */ |
||
31 | private $errors; |
||
32 | |||
33 | /** |
||
34 | * @param ConstraintViolationListInterface $violations |
||
35 | * @param string $violationsRoot The name of the object that was validated. |
||
36 | * @param string[] $errors |
||
37 | * @param string $message |
||
38 | * @return self |
||
39 | */ |
||
40 | public static function createForViolationsAndErrors( |
||
50 | |||
51 | /** |
||
52 | * @param string[] $errors |
||
53 | * @param string $message |
||
54 | * @param int $code |
||
55 | * @param \Exception|null $previous |
||
56 | */ |
||
57 | public function __construct( |
||
67 | |||
68 | /** |
||
69 | * @return string[] |
||
70 | */ |
||
71 | public function getErrors() |
||
75 | |||
76 | /** |
||
77 | * @param ConstraintViolationListInterface $violations |
||
78 | * @param string $root |
||
79 | * @return array |
||
80 | */ |
||
81 | private static function mapViolationsToErrorStrings(ConstraintViolationListInterface $violations, $root) |
||
92 | } |
||
93 |