PHP Класс Samrap\Kickstart\Exceptions\Handler

Наследование: extends Illuminate\Foundation\Exceptions\Handler
Показать файл Открыть проект

Открытые методы

Метод Описание
render ( Illuminate\Http\Request $request, Exception $e ) : Illuminate\Http\Response Render an exception into an HTTP response.

Защищенные методы

Метод Описание
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.

Описание методов

render() публичный Метод

Render an exception into an HTTP response.
public render ( Illuminate\Http\Request $request, Exception $e ) : Illuminate\Http\Response
$request Illuminate\Http\Request
$e Exception
Результат Illuminate\Http\Response

renderExceptionWithWhoops() защищенный Метод

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.
Результат Illuminate\Http\Response

shouldUseCustomHandler() защищенный Метод

Determine if the custom exception handler should be used.
protected shouldUseCustomHandler ( Exception $e ) : boolean
$e Exception
Результат boolean