1 | <?php |
||
14 | class Handler implements ExceptionHandler |
||
15 | { |
||
16 | /** |
||
17 | * app exception handler. |
||
18 | * |
||
19 | * @var \Illuminate\Contracts\Debug\ExceptionHandler |
||
20 | */ |
||
21 | protected $exceptionHandler; |
||
22 | |||
23 | /** |
||
24 | * $debuggerManager. |
||
25 | * |
||
26 | * @var \Recca0120\LaravelTracy\DebuggerManager |
||
27 | */ |
||
28 | protected $debuggerManager; |
||
29 | |||
30 | /** |
||
31 | * __construct. |
||
32 | * |
||
33 | * @param \Illuminate\Contracts\Debug\ExceptionHandler $exceptionHandler |
||
34 | * @param \Recca0120\LaravelTracy\DebuggerManager $debuggerManager |
||
35 | */ |
||
36 | 12 | public function __construct(ExceptionHandler $exceptionHandler, DebuggerManager $debuggerManager) |
|
41 | |||
42 | /** |
||
43 | * Report or log an exception. |
||
44 | * |
||
45 | * @param \Throwable $e |
||
46 | * @return void |
||
47 | * |
||
48 | * @throws \Exception |
||
49 | */ |
||
50 | 1 | public function report(Throwable $e) |
|
54 | |||
55 | /** |
||
56 | * Determine if the exception should be reported. |
||
57 | * |
||
58 | * @param \Throwable $e |
||
59 | * @return bool |
||
60 | */ |
||
61 | 1 | public function shouldReport(Throwable $e) |
|
65 | |||
66 | /** |
||
67 | * Render an exception into an HTTP response. |
||
68 | * |
||
69 | * @param \Illuminate\Http\Request $request |
||
70 | * @param \Throwable $e |
||
71 | * @return \Symfony\Component\HttpFoundation\Response |
||
72 | * |
||
73 | * @throws \Throwable |
||
74 | */ |
||
75 | 8 | public function render($request, Throwable $e) |
|
88 | |||
89 | /** |
||
90 | * Render an exception to the console. |
||
91 | * |
||
92 | * @param \Symfony\Component\Console\Output\OutputInterface $output |
||
93 | * @param \Throwable $e |
||
94 | * @return void |
||
95 | */ |
||
96 | 1 | public function renderForConsole($output, Throwable $e) |
|
100 | |||
101 | /** |
||
102 | * shouldRenderException. |
||
103 | * |
||
104 | * @param \Illuminate\Http\Response|\Symfony\Component\HttpFoundation\Response $response |
||
105 | * @return bool |
||
106 | */ |
||
107 | 8 | protected function shouldRenderException($response) |
|
120 | } |
||
121 |