1 | <?php |
||
13 | class Handler implements ExceptionHandlerContract |
||
14 | { |
||
15 | protected $parentHandler; |
||
16 | |||
17 | public function __construct(ExceptionHandlerContract $parentHandler) |
||
21 | |||
22 | /** |
||
23 | * Report or log an exception. |
||
24 | * |
||
25 | * @param \Exception $exception |
||
26 | * |
||
27 | * @return void |
||
28 | * @throws \Exception |
||
29 | */ |
||
30 | public function report(Exception $exception) |
||
34 | |||
35 | /** |
||
36 | * Render an exception into a response. |
||
37 | * |
||
38 | * @param \Illuminate\Http\Request $request |
||
39 | * @param \Exception $exception |
||
40 | * |
||
41 | * @return \Symfony\Component\HttpFoundation\Response |
||
42 | */ |
||
43 | public function render($request, Exception $exception) |
||
55 | |||
56 | /** |
||
57 | * Render an exception to the console. |
||
58 | * |
||
59 | * @param \Symfony\Component\Console\Output\OutputInterface $output |
||
60 | * @param \Exception $exception |
||
61 | * |
||
62 | * @return void |
||
63 | */ |
||
64 | public function renderForConsole($output, Exception $exception) |
||
68 | |||
69 | /** |
||
70 | * Prepare exception for rendering. |
||
71 | * |
||
72 | * @param \Exception $exception |
||
73 | * @return \Exception |
||
74 | */ |
||
75 | protected function prepareException(Exception $exception) |
||
85 | |||
86 | /** |
||
87 | * Convert an authentication exception into an unauthenticated response. |
||
88 | * |
||
89 | * @param \Illuminate\Http\Request $request |
||
90 | * @param \Illuminate\Auth\AuthenticationException $exception |
||
91 | * @return \Illuminate\Http\Response |
||
92 | */ |
||
93 | protected function unauthenticated($request, AuthenticationException $exception) |
||
101 | |||
102 | /** |
||
103 | * Render the given HttpException. |
||
104 | * |
||
105 | * @param \Illuminate\Http\Request $request |
||
106 | * @param \Symfony\Component\HttpKernel\Exception\HttpException $exception |
||
107 | * @return \Symfony\Component\HttpFoundation\Response |
||
108 | */ |
||
109 | protected function renderHttpException($request, HttpException $exception) |
||
117 | } |
||
118 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.