PHP Class Learner\Exceptions\Handler

Inheritance: extends Illuminate\Foundation\Exceptions\Handler
Show file Open project: RryLee/learner.video

Protected Properties

Property Type Description
$dontReport array A list of the exception types that should not be reported.

Public Methods

Method Description
render ( Illuminate\Http\Request $request, Exception $e ) : Illuminate\Http\Response Render an exception into an HTTP response.
report ( Exception $e ) : void Report or log an exception.

Private Methods

Method Description
handle ( Request $request, Exception $e ) : JSONResponse Convert the Exception into a JSON HTTP Response

Method Details

render() public method

Render an exception into an HTTP response.
public render ( Illuminate\Http\Request $request, Exception $e ) : Illuminate\Http\Response
$request Illuminate\Http\Request
$e Exception
return Illuminate\Http\Response

report() public method

This is a great spot to send exceptions to Sentry, Bugsnag, etc.
public report ( Exception $e ) : void
$e Exception
return void

Property Details

$dontReport protected property

A list of the exception types that should not be reported.
protected array $dontReport
return array