| 1 | <?php |
||
| 13 | class ErrorHandler |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var Responder instance |
||
| 17 | */ |
||
| 18 | protected $responder; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param \Vinelab\Api\Responder $responder |
||
| 22 | */ |
||
| 23 | public function __construct(Responder $responder) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param $exception |
||
| 30 | * @param int $code |
||
| 31 | * @param int $status |
||
| 32 | * @param array $headers |
||
| 33 | * @param int $options |
||
| 34 | * |
||
| 35 | * @return \Illuminate\Http\JsonResponse|string |
||
| 36 | * |
||
| 37 | * @throws \Vinelab\Api\ApiException |
||
| 38 | */ |
||
| 39 | public function handle($exception, $code = 0, $status = 500, $headers = [], $options = 0) |
||
| 59 | } |
||
| 60 |