PHP Class BookStack\Exceptions\Handler

Inheritance: extends Illuminate\Foundation\Exceptions\Handler
Datei anzeigen Open project: ssddanbrown/bookstack

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 ) Report or log an exception.

Protected Methods

Method Description
getOriginalMessage ( Exception $e ) : string Get original exception message.
isExceptionType ( Exception $e, $type ) : boolean Check the exception chain to compare against the original exception type.
unauthenticated ( Illuminate\Http\Request $request, AuthenticationException $exception ) : Illuminate\Http\Response Convert an authentication exception into an unauthenticated response.

Method Details

getOriginalMessage() protected method

Get original exception message.
protected getOriginalMessage ( Exception $e ) : string
$e Exception
return string

isExceptionType() protected method

Check the exception chain to compare against the original exception type.
protected isExceptionType ( Exception $e, $type ) : boolean
$e Exception
$type
return boolean

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 )
$e Exception

unauthenticated() protected method

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

Property Details

$dontReport protected_oe property

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