1 | <?php |
||
11 | class ValidationException extends \RuntimeException |
||
12 | { |
||
13 | protected $messages = []; |
||
14 | |||
15 | /** |
||
16 | * {@inheritdoc} |
||
17 | */ |
||
18 | public function __construct(array $messages, $code = 400, \Exception $previous = null) |
||
23 | |||
24 | /** |
||
25 | * @return array |
||
26 | */ |
||
27 | public function getMessages() |
||
31 | |||
32 | |||
33 | /** |
||
34 | * Переведенные сообщения об ошибках |
||
35 | * |
||
36 | * @param TranslatorInterface $translator |
||
37 | * @return array |
||
38 | * |
||
39 | * @throws \Exception |
||
40 | */ |
||
41 | public function getTranslatedMessages(TranslatorInterface $translator) |
||
50 | } |
||
51 |