PHP Класс Crud\Error\ExceptionRenderer

Licensed under The MIT License For full copyright and license information, please see the LICENSE.txt
Наследование: extends Cake\Error\ExceptionRenderer
Показать файл Открыть проект

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

Метод Описание
validation ( Crud\Error\Exception\ValidationException $error ) : Response Renders validation errors and sends a 422 error code

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

Метод Описание
_getErrorData ( ) : array Helper method used to generate extra debugging data into the error template
_getQueryLog ( ) : array Helper method to get query log.
_outputMessage ( string $template ) : Response Generate the response using the controller object.

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

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

Helper method used to generate extra debugging data into the error template
protected _getErrorData ( ) : array
Результат array debugging data

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

Helper method to get query log.
protected _getQueryLog ( ) : array
Результат array Query log.

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

If there is no specific template for the raised error (normally there won't be one) swallow the missing view exception and just use the standard error format. This prevents throwing an unknown Exception and seeing instead a MissingView exception
protected _outputMessage ( string $template ) : Response
$template string The template to render.
Результат Cake\Network\Response

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

Renders validation errors and sends a 422 error code
public validation ( Crud\Error\Exception\ValidationException $error ) : Response
$error Crud\Error\Exception\ValidationException Exception instance
Результат Cake\Network\Response