| 1 | <?php namespace App\Exceptions; |
||
| 6 | class Handler extends ExceptionHandler { |
||
| 7 | |||
| 8 | /** |
||
| 9 | * A list of the exception types that should not be reported. |
||
| 10 | * |
||
| 11 | * @var array |
||
| 12 | */ |
||
| 13 | protected $dontReport = [ |
||
| 14 | 'Symfony\Component\HttpKernel\Exception\HttpException' |
||
| 15 | ]; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Report or log an exception. |
||
| 19 | * |
||
| 20 | * This is a great spot to send exceptions to Sentry, Bugsnag, etc. |
||
| 21 | * |
||
| 22 | * @param \Exception $e |
||
| 23 | * @return void |
||
| 24 | */ |
||
| 25 | public function report(Exception $e) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Render an exception into an HTTP response. |
||
| 32 | * |
||
| 33 | * @param \Illuminate\Http\Request $request |
||
| 34 | * @param \Exception $e |
||
| 35 | * @return \Illuminate\Http\Response |
||
| 36 | */ |
||
| 37 | public function render($request, Exception $e) |
||
| 41 | |||
| 42 | } |
||
| 43 |