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

handle() protected method

Handles an Exception thrown while rendering TypoScript
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)
    {
        if (isset($referenceCode)) {
            return sprintf('Exception while rendering %s: %s (%s)', $this->formatScriptPath($typoScriptPath, "\n\t", false), strip_tags($exception->getMessage()), $referenceCode);
        } else {
            return sprintf('Exception while rendering %s: %s', $this->formatScriptPath($typoScriptPath, "\n\t", false), strip_tags($exception->getMessage()));
        }
    }
PlainTextHandler