PHP 클래스 Crud\Error\ExceptionRenderer

Licensed under The MIT License For full copyright and license information, please see the LICENSE.txt
상속: extends Cake\Error\ExceptionRenderer
파일 보기 프로젝트 열기: friendsofcake/crud

공개 메소드들

메소드 설명
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