Handler::report()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * The file handle the errors.
4
 *
5
 * @link       https://github.com/maab16
6
 * @since      1.0.0
7
 */
8
9
namespace WPB\App\Exceptions;
10
11
use Throwable;
12
use WPB\Exceptions\Handler as ExceptionHandler;
13
14
/**
15
 * The exception handler.
16
 *
17
 * @since      1.0.0
18
 *
19
 * @author     Md Abu Ahsan basir <[email protected]>
20
 */
21
class Handler extends ExceptionHandler
22
{
23
    /**
24
     * A list of the exception types that are not reported.
25
     *
26
     * @var array
27
     */
28
    protected $dont_report = [];
29
30
    /**
31
     * A list of the inputs that are never flashed for validation exceptions.
32
     *
33
     * @var array
34
     */
35
    protected $dont_flash = [
36
        'password',
37
        'password_confirmation',
38
    ];
39
40
    /**
41
     * Report or log an exception.
42
     *
43
     * @param \Throwable $exception The throwable exception.
44
     *
45
     * @throws \Exception Throw the exception.
46
     *
47
     * @return void
48
     */
49
    public function report(Throwable $exception)
50
    {
51
        parent::report($exception);
52
    }
53
54
    /**
55
     * Render an exception into an HTTP response.
56
     *
57
     * @param \Illuminate\Http\Request $request   The app http request.
58
     * @param \Throwable               $exception The throwable exception.
59
     *
60
     * @throws \Throwable Throw the nexception.
61
     *
62
     * @return \Symfony\Component\HttpFoundation\Response
63
     */
64
    public function render($request, Throwable $exception)
65
    {
66
        return parent::render($request, $exception);
67
    }
68
}
69