Neos.Fusion/Classes/Core/ExceptionHandlers/XmlCommentHandler.php
protected function handle($fusionPath, \Exception $exception, $referenceCode)
    {
        $logMessage = $this->throwableStorage->logThrowable($exception);
        $this->logger->error($logMessage, LogEnvironment::fromMethodName(__METHOD__));
        if (isset($referenceCode)) {
            return sprintf(
                '<!-- Exception while rendering %s: %s (%s) -->',
                $this->formatScriptPath($fusionPath, ''),
                htmlspecialchars($exception->getMessage()),
                $referenceCode
            );
        } else {
            return sprintf(
                '<!-- Exception while rendering %s: %s -->',
                $this->formatScriptPath($fusionPath, ''),
                htmlspecialchars($exception->getMessage())
            );
        }
    }
protected function handle($fusionPath, \Exception $exception, $referenceCode)
    {
        $logMessage = $this->throwableStorage->logThrowable($exception);
        $this->logger->error($logMessage, LogEnvironment::fromMethodName(__METHOD__));
        if (isset($referenceCode)) {
            return sprintf(
                '<!-- Exception while rendering %s: %s (%s) -->',
                $this->formatScriptPath($fusionPath, ''),
                htmlspecialchars($exception->getMessage()),
                $referenceCode
            );
        } else {
            return sprintf(
                '<!-- Exception while rendering %s: %s -->',
                $this->formatScriptPath($fusionPath, ''),
                htmlspecialchars($exception->getMessage())
            );
        }
    }
protected function handle ( $ fusionPath , \ Exception $ exception , $ referenceCode ) { $ logMessage = $ this -> throwableStorage -> logThrowable ( $ exception ) ; $ this -> logger -> error ( $ logMessage , LogEnvironment :: fromMethodName ( __METHOD__ ) ) ; if ( isset ( $ referenceCode ) ) { return sprintf ( '<!-- Exception while rendering %s: %s (%s) -->' , $ this -> formatScriptPath ( $ fusionPath , '' ) , htmlspecialchars ( $ exception -> getMessage ( ) ) , $ referenceCode ) ; } else { return sprintf ( '<!-- Exception while rendering %s: %s -->' , $ this -> formatScriptPath ( $ fusionPath , '' ) , htmlspecialchars ( $ exception -> getMessage ( ) ) ) ; } }
Provides an XML comment containing the exception

@param string $fusionPath path causing the exception
@param \Exception $exception exception to handle
@param integer $referenceCode
@return string
Provides an XML comment containing the exception