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