Property | Type | Description | |
---|---|---|---|
$options | array | ||
$renderingOptions | array | ||
$systemLogger | Neos\Flow\Log\SystemLoggerInterface |
Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
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 |
public __construct ( ) |
protected applyLegacyViewOptions ( Neos\Flow\Mvc\View\ViewInterface $view, array $renderingOptions ) : Neos\Flow\Mvc\View\ViewInterface | ||
$view | Neos\Flow\Mvc\View\ViewInterface | |
$renderingOptions | array | |
return | Neos\Flow\Mvc\View\ViewInterface |
protected echoExceptionCli ( object $exception ) : void | ||
$exception | object | \Exception or \Throwable |
return | void |
abstract protected echoExceptionWeb ( object $exception ) : void | ||
$exception | object | \Exception or \Throwable |
return | void |
public handleException ( object $exception ) : void | ||
$exception | object | The exception object - can be \Exception, or some type of \Throwable in PHP 7 |
return | void |
public injectSystemLogger ( Neos\Flow\Log\SystemLoggerInterface $systemLogger ) : void | ||
$systemLogger | Neos\Flow\Log\SystemLoggerInterface | |
return | void |
protected renderSingleExceptionCli ( object $exception ) : string | ||
$exception | object | \Exception or \Throwable |
return | string |
protected resolveCustomRenderingOptions ( object $exception ) : array | ||
$exception | object | \Exception or \Throwable |
return | array | the custom rendering options, or NULL if no custom rendering is defined for this exception |
protected resolveRenderingGroup ( object $exception ) : string | ||
$exception | object | \Exception or \Throwable |
return | string | name of the resolved renderingGroup or NULL if no group could be resolved |
public setOptions ( array $options ) : void | ||
$options | array | Options for the exception handler |
return | void |
protected splitExceptionMessage ( string $exceptionMessage ) : array | ||
$exceptionMessage | string | |
return | array | in the format array('subject' => ' |