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