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()));
}
}