| 1 | <?php namespace Vindi\Exceptions; |
||
| 3 | class ValidationException extends RequestException |
||
| 4 | { |
||
| 5 | /** |
||
| 6 | * ValidationException constructor. |
||
| 7 | * |
||
| 8 | * @param int $status |
||
| 9 | * @param mixed $errors |
||
| 10 | * @param array $lastOptions |
||
| 11 | 4 | */ |
|
| 12 | public function __construct($status, $errors, array $lastOptions = []) |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Handle errors response as json |
||
| 21 | * |
||
| 22 | * @param $errors |
||
| 23 | * @return string |
||
| 24 | */ |
||
| 25 | public function handleJson($errors) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Handle errors response as string |
||
| 40 | * |
||
| 41 | * @param $errors |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | public function handleString($errors) |
||
| 56 | } |
||
| 57 |