Total Complexity | 2 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class Handler extends ExceptionHandler |
||
13 | { |
||
14 | /** |
||
15 | * A list of the exception types that should not be reported. |
||
16 | * |
||
17 | * @var array |
||
18 | */ |
||
19 | protected $dontReport = [ |
||
20 | AuthorizationException::class, |
||
21 | HttpException::class, |
||
22 | ModelNotFoundException::class, |
||
23 | ValidationException::class, |
||
24 | ]; |
||
25 | |||
26 | /** |
||
27 | * Report or log an exception. |
||
28 | * |
||
29 | * This is a great spot to send exceptions to Sentry, Bugsnag, etc. |
||
30 | * |
||
31 | * @param \Exception $exception |
||
32 | * |
||
33 | * @return void |
||
34 | */ |
||
35 | public function report(Exception $exception): void |
||
36 | { |
||
37 | parent::report($exception); |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * Render an exception into an HTTP response. |
||
42 | * |
||
43 | * @param \Illuminate\Http\Request $request |
||
44 | * @param \Exception $exception |
||
45 | * |
||
46 | * @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response |
||
47 | */ |
||
48 | public function render($request, Exception $exception) |
||
51 | } |
||
52 | } |
||
53 |