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

handle() protected method

Handle an exception depending on the context with an HTML message or XML comment
protected handle ( array $typoScriptPath, Exception $exception, integer $referenceCode ) : string
$typoScriptPath array path causing the exception
$exception Exception exception to handle
$referenceCode integer
return string
    protected function handle($typoScriptPath, \Exception $exception, $referenceCode)
    {
        $context = $this->environment->getContext();
        if ($context->isDevelopment()) {
            $handler = new HtmlMessageHandler();
        } else {
            $handler = new XmlCommentHandler();
        }
        $handler->setRuntime($this->getRuntime());
        return $handler->handleRenderingException($typoScriptPath, $exception);
    }
ContextDependentHandler