Neos.Fusion/Classes/Core/ExceptionHandlers/ContextDependentHandler.php
protected function handle($fusionPath, \Exception $exception, $referenceCode)
    {
        $context = $this->environment->getContext();
        if ($context->isDevelopment()) {
            $handler = new HtmlMessageHandler();
        } else {
            $handler = new XmlCommentHandler();
        }
        $handler->setRuntime($this->getRuntime());
        return $handler->handleRenderingException($fusionPath, $exception);
    }
protected function handle($fusionPath, \Exception $exception, $referenceCode)
    {
        $context = $this->environment->getContext();
        if ($context->isDevelopment()) {
            $handler = new HtmlMessageHandler();
        } else {
            $handler = new XmlCommentHandler();
        }
        $handler->setRuntime($this->getRuntime());
        return $handler->handleRenderingException($fusionPath, $exception);
    }
protected function handle ( $ fusionPath , \ Exception $ exception , $ referenceCode ) { $ context = $ this -> environment -> getContext ( ) ; if ( $ context -> isDevelopment ( ) ) { $ handler = new HtmlMessageHandler ( ) ; } else { $ handler = new XmlCommentHandler ( ) ; } $ handler -> setRuntime ( $ this -> getRuntime ( ) ) ; return $ handler -> handleRenderingException ( $ fusionPath , $ exception ) ; }
Handle an exception depending on the context with an HTML message or XML comment

@param array $fusionPath path causing the exception
@param \Exception $exception exception to handle
@param integer $referenceCode
@return string
Handle an exception depending on the context with an HTML message or XML comment