1 | <?php |
||
11 | class Handler implements ExceptionHandlerContract |
||
12 | { |
||
13 | protected $parentHandler; |
||
14 | |||
15 | public function __construct(ExceptionHandlerContract $parentHandler) |
||
19 | |||
20 | /** |
||
21 | * Report or log an exception. |
||
22 | * |
||
23 | * @param \Exception $exception |
||
24 | * |
||
25 | * @return void |
||
26 | * @throws \Exception |
||
27 | */ |
||
28 | public function report(Exception $exception) |
||
32 | |||
33 | /** |
||
34 | * Render an exception into a response. |
||
35 | * |
||
36 | * @param \Illuminate\Http\Request $request |
||
37 | * @param \Exception $exception |
||
38 | * |
||
39 | * @return \Symfony\Component\HttpFoundation\Response |
||
40 | */ |
||
41 | public function render($request, Exception $exception) |
||
60 | |||
61 | /** |
||
62 | * Render an exception to the console. |
||
63 | * |
||
64 | * @param \Symfony\Component\Console\Output\OutputInterface $output |
||
65 | * @param \Exception $exception |
||
66 | * |
||
67 | * @return void |
||
68 | */ |
||
69 | public function renderForConsole($output, Exception $exception) |
||
73 | } |
||
74 |