Total Complexity | 4 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 80% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | final class Handler extends ExceptionHandler |
||
12 | { |
||
13 | /** |
||
14 | * A list of the exception types that are not reported. |
||
15 | * |
||
16 | * @var array |
||
17 | */ |
||
18 | protected $dontReport = [ |
||
19 | // |
||
20 | ]; |
||
21 | |||
22 | /** |
||
23 | * A list of the inputs that are never flashed for validation exceptions. |
||
24 | * |
||
25 | * @var array |
||
26 | */ |
||
27 | protected $dontFlash = [ |
||
28 | 'password', |
||
29 | 'password_confirmation', |
||
30 | ]; |
||
31 | |||
32 | /** |
||
33 | * Report or log an exception. |
||
34 | * |
||
35 | * @param \Throwable $e |
||
36 | * @return void |
||
37 | * |
||
38 | * @throws \Exception |
||
39 | 14 | */ |
|
40 | public function report(Throwable $e) |
||
41 | 14 | { |
|
42 | if ($this->container->bound('sentry') && $this->shouldReport($e)) { |
||
43 | $this->container->make('sentry')->captureException($e); |
||
44 | } |
||
45 | 14 | ||
46 | 14 | parent::report($e); |
|
47 | } |
||
48 | |||
49 | public function render($request, Throwable $e) |
||
54 | } |
||
55 | } |
||
56 |