| 1 | <?php namespace Vindi\Exceptions; |
||
| 5 | class RequestException extends Exception |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var mixed |
||
| 9 | */ |
||
| 10 | protected $errors; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | protected $ids; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | protected $parameters; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var array |
||
| 24 | */ |
||
| 25 | protected $messages; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var array |
||
| 29 | **/ |
||
| 30 | private $lastOptions; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * ValidationException constructor. |
||
| 34 | * |
||
| 35 | * @param int $status |
||
| 36 | * @param mixed $errors |
||
| 37 | */ |
||
| 38 | 10 | public function __construct($status, $errors, array $lastOptions = []) |
|
| 62 | |||
| 63 | 4 | /** |
|
| 64 | * @return mixed |
||
| 65 | */ |
||
| 66 | public function getErrors() |
||
| 70 | |||
| 71 | 4 | /** |
|
| 72 | * @return array |
||
| 73 | */ |
||
| 74 | public function getIds() |
||
| 78 | |||
| 79 | 4 | /** |
|
| 80 | * @return array |
||
| 81 | */ |
||
| 82 | public function getParameters() |
||
| 86 | |||
| 87 | 4 | /** |
|
| 88 | * @return array |
||
| 89 | */ |
||
| 90 | public function getMessages() |
||
| 94 | 4 | ||
| 95 | /** |
||
| 96 | 4 | * Return the last request body |
|
| 97 | * @return string |
||
| 98 | **/ |
||
| 99 | public function getRequestBody() |
||
| 103 | } |
||
| 104 |