Total Complexity | 3 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | trait HandleExceptions |
||
18 | { |
||
19 | /** |
||
20 | * Report the exception to the exception handler. |
||
21 | * |
||
22 | * @param Exception $e |
||
23 | * @return void |
||
24 | */ |
||
25 | protected function reportException(Throwable $e) |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @param Request|ServerRequestInterface $request |
||
32 | * @param Exception $e |
||
33 | * @return Response|ResponseInterface |
||
34 | */ |
||
35 | protected function renderException($request, Throwable $e) |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @param Exception $e |
||
42 | * @param Request|ServerRequestInterface $request |
||
43 | * @return Response |
||
44 | */ |
||
45 | protected function handleException($request, Throwable $e) |
||
52 |