PHP Class Samrap\Kickstart\Exceptions\Handler

Inheritance: extends Illuminate\Foundation\Exceptions\Handler
Show file Open project: samrap/laravel-kickstart

Public Methods

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

Protected Methods

Method Description
renderExceptionWithWhoops ( Exception $e, string $json = false ) : Illuminate\Http\Response Render an exception using Whoops.
shouldUseCustomHandler ( Exception $e ) : boolean Determine if the custom exception handler should be used.

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

renderExceptionWithWhoops() protected method

Render an exception using Whoops.
protected renderExceptionWithWhoops ( Exception $e, string $json = false ) : Illuminate\Http\Response
$e Exception The Exception object
$json string Whether to use the JsonResponseHandler instead of the PrettyPageHandler.
return Illuminate\Http\Response

shouldUseCustomHandler() protected method

Determine if the custom exception handler should be used.
protected shouldUseCustomHandler ( Exception $e ) : boolean
$e Exception
return boolean