PHP Class Samrap\Kickstart\Exceptions\Handler

Inheritance: extends Illuminate\Foundation\Exceptions\Handler
Afficher le fichier Open project: samrap/laravel-kickstart

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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

renderExceptionWithWhoops() protected méthode

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.
Résultat Illuminate\Http\Response

shouldUseCustomHandler() protected méthode

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