PHP Class REBELinBLUE\Deployer\Exceptions\Handler

Inheritance: extends Illuminate\Foundation\Exceptions\Handler
ファイルを表示 Open project: rebelinblue/deployer

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

Protected Methods

Method Description
isSafeToWhoops ( Exception $exception ) : boolean Don't allow the exceptions which laravel handles specially to be converted to Whoops This is horrible though, see if we can find a better way to do it.
renderExceptionWithWhoops ( Illuminate\Http\Request $request, Exception $exception ) : Illuminate\Http\Response Render an exception using Whoops.

Method Details

isSafeToWhoops() protected method

GrahamCampbell/Laravel-Exceptions unfortunately doesn't return JSON for whoops pages which are from AJAX.
protected isSafeToWhoops ( Exception $exception ) : boolean
$exception Exception
return boolean

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

renderExceptionWithWhoops() protected method

Render an exception using Whoops.
protected renderExceptionWithWhoops ( 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 )
$exception Exception

Property Details

$dontReport protected_oe property

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