PHP Class framework\exceptions\Handler

Inheritance: extends Illuminate\Foundation\Exceptions\Handler
Show file Open project: vinelab/lucid

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 $exception ) : Illuminate\Http\Response Render an exception into an HTTP response.
report ( Exception $exception ) : void Report or log an exception.

Protected Methods

Method Description
unauthenticated ( Illuminate\Http\Request $request, Illuminate\Auth\AuthenticationException $exception ) : Illuminate\Http\Response Convert an authentication exception into an unauthenticated response.

Method Details

render() public method

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

report() public method

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

unauthenticated() protected method

Convert an authentication exception into an unauthenticated response.
protected unauthenticated ( Illuminate\Http\Request $request, Illuminate\Auth\AuthenticationException $exception ) : Illuminate\Http\Response
$request Illuminate\Http\Request
$exception Illuminate\Auth\AuthenticationException
return Illuminate\Http\Response

Property Details

$dontReport protected property

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