PHP Класс Neos\Flow\Error\AbstractExceptionHandler

Наследование: implements Neos\Flow\Error\ExceptionHandlerInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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