Neos\Fusion\Core\ExceptionHandlers\XmlCommentHandler::handle PHP Method

handle() protected method

Provides an XML comment containing the exception
protected handle ( string $typoScriptPath, Exception $exception, integer $referenceCode ) : string
$typoScriptPath string path causing the exception
$exception Exception exception to handle
$referenceCode integer
return string
    protected function handle($typoScriptPath, \Exception $exception, $referenceCode)
    {
        $this->systemLogger->logException($exception);
        if (isset($referenceCode)) {
            return sprintf('<!-- Exception while rendering %s: %s (%s) -->', $this->formatScriptPath($typoScriptPath, ''), htmlspecialchars($exception->getMessage()), $referenceCode);
        } else {
            return sprintf('<!-- Exception while rendering %s: %s -->', $this->formatScriptPath($typoScriptPath, ''), htmlspecialchars($exception->getMessage()));
        }
    }
XmlCommentHandler