PHP 클래스 Neos\Flow\Error\AbstractExceptionHandler

상속: implements Neos\Flow\Error\ExceptionHandlerInterface
파일 보기 프로젝트 열기: neos/flow-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$options array
$renderingOptions array
$systemLogger Neos\Flow\Log\SystemLoggerInterface

공개 메소드들

메소드 설명
__construct ( ) Constructs this exception handler - registers itself as the default exception handler.
handleException ( object $exception ) : void Handles the given exception
injectSystemLogger ( Neos\Flow\Log\SystemLoggerInterface $systemLogger ) : void Injects the system logger
setOptions ( array $options ) : void Sets options of this exception handler.

보호된 메소드들

메소드 설명
applyLegacyViewOptions ( Neos\Flow\Mvc\View\ViewInterface $view, array $renderingOptions ) : Neos\Flow\Mvc\View\ViewInterface Sets legacy "option" properties to the view for backwards compatibility.
buildView ( object $exception, array $renderingOptions ) : Neos\Flow\Mvc\View\ViewInterface Prepares a Fluid view for rendering the custom error page.
echoExceptionCli ( object $exception ) : void Formats and echoes the exception and its previous exceptions (if any) for the command line
echoExceptionWeb ( object $exception ) : void Echoes an exception for the web.
renderExceptionDetailCli ( string $label, string $value ) : string Renders the given $value word-wrapped and prefixed with $label
renderSingleExceptionCli ( object $exception ) : string Renders a single exception including message, code and affected file
resolveCustomRenderingOptions ( object $exception ) : array Checks if custom rendering rules apply to the given $exception and returns those.
resolveRenderingGroup ( object $exception ) : string
splitExceptionMessage ( string $exceptionMessage ) : array Splits the given string into subject and body according to following rules: - If the string is empty or does not contain more than one sentence nor line breaks, the subject will be equal to the string and body will be an empty string - Otherwise the subject is everything until the first line break or end of sentence, the body contains the rest

메소드 상세

__construct() 공개 메소드

Constructs this exception handler - registers itself as the default exception handler.
public __construct ( )

applyLegacyViewOptions() 보호된 메소드

Sets legacy "option" properties to the view for backwards compatibility.
protected applyLegacyViewOptions ( Neos\Flow\Mvc\View\ViewInterface $view, array $renderingOptions ) : Neos\Flow\Mvc\View\ViewInterface
$view Neos\Flow\Mvc\View\ViewInterface
$renderingOptions array
리턴 Neos\Flow\Mvc\View\ViewInterface

buildView() 보호된 메소드

Prepares a Fluid view for rendering the custom error page.
protected buildView ( object $exception, array $renderingOptions ) : Neos\Flow\Mvc\View\ViewInterface
$exception object \Exception or \Throwable
$renderingOptions array Rendering options as defined in the settings
리턴 Neos\Flow\Mvc\View\ViewInterface

echoExceptionCli() 보호된 메소드

Formats and echoes the exception and its previous exceptions (if any) for the command line
protected echoExceptionCli ( object $exception ) : void
$exception object \Exception or \Throwable
리턴 void

echoExceptionWeb() 추상적인 보호된 메소드

Echoes an exception for the web.
abstract protected echoExceptionWeb ( object $exception ) : void
$exception object \Exception or \Throwable
리턴 void

handleException() 공개 메소드

Handles the given exception
public handleException ( object $exception ) : void
$exception object The exception object - can be \Exception, or some type of \Throwable in PHP 7
리턴 void

injectSystemLogger() 공개 메소드

Injects the system logger
public injectSystemLogger ( Neos\Flow\Log\SystemLoggerInterface $systemLogger ) : void
$systemLogger Neos\Flow\Log\SystemLoggerInterface
리턴 void

renderExceptionDetailCli() 보호된 메소드

Renders the given $value word-wrapped and prefixed with $label
protected renderExceptionDetailCli ( string $label, string $value ) : string
$label string
$value string
리턴 string

renderSingleExceptionCli() 보호된 메소드

Renders a single exception including message, code and affected file
protected renderSingleExceptionCli ( object $exception ) : string
$exception object \Exception or \Throwable
리턴 string

resolveCustomRenderingOptions() 보호된 메소드

Checks if custom rendering rules apply to the given $exception and returns those.
protected resolveCustomRenderingOptions ( object $exception ) : array
$exception object \Exception or \Throwable
리턴 array the custom rendering options, or NULL if no custom rendering is defined for this exception

resolveRenderingGroup() 보호된 메소드

protected resolveRenderingGroup ( object $exception ) : string
$exception object \Exception or \Throwable
리턴 string name of the resolved renderingGroup or NULL if no group could be resolved

setOptions() 공개 메소드

Sets options of this exception handler.
public setOptions ( array $options ) : void
$options array Options for the exception handler
리턴 void

splitExceptionMessage() 보호된 메소드

Splits the given string into subject and body according to following rules: - If the string is empty or does not contain more than one sentence nor line breaks, the subject will be equal to the string and body will be an empty string - Otherwise the subject is everything until the first line break or end of sentence, the body contains the rest
protected splitExceptionMessage ( string $exceptionMessage ) : array
$exceptionMessage string
리턴 array in the format array('subject' => '', 'body' => '');

프로퍼티 상세

$options 보호되어 있는 프로퍼티

protected array $options
리턴 array

$renderingOptions 보호되어 있는 프로퍼티

protected array $renderingOptions
리턴 array

$systemLogger 보호되어 있는 프로퍼티

protected SystemLoggerInterface,Neos\Flow\Log $systemLogger
리턴 Neos\Flow\Log\SystemLoggerInterface