PHP 클래스 ApiExceptionRenderer, Platform-API-plugin

상속: extends ExceptionRenderer
파일 보기 프로젝트 열기: nodesagency/Platform-API-plugin

보호된 메소드들

메소드 설명
_outputMessage ( string $template ) : void Generate the response using the controller object.
_outputMessageSafe ( string $template ) : void A safer way to render error messages, replaces all helpers, with basics and doesn't call component methods.

메소드 상세

_outputMessage() 보호된 메소드

If there is no specific template for the error raised (normally there will not be) swallow the missing view exception and just use the standard error format. This prevents throwing a RandomException and seeing instead a MissingView exception
protected _outputMessage ( string $template ) : void
$template string The template to render.
리턴 void

_outputMessageSafe() 보호된 메소드

A safer way to render error messages, replaces all helpers, with basics and doesn't call component methods.
protected _outputMessageSafe ( string $template ) : void
$template string The template to render
리턴 void