handleException(...)); } /** * Formats and echoes the exception as XHTML. * * @param \Throwable $exception The throwable object. */ public function echoExceptionWeb(\Throwable $exception) { $this->sendStatusHeaders($exception); $this->writeLogEntries($exception, self::CONTEXT_WEB); $content = $this->getContent($exception); $css = $this->getStylesheet(); $js = $this->getJavascript(); echo <<
If you need help solving this exception, you can have a look at the TYPO3 Documentation. There you can find solutions provided by the TYPO3 community. Once you have found a solution to the problem, help others by contributing to the documentation page.
Find a solution for this exception in the TYPO3 Documentation.
';
for ($line = $startLine; $line < $endLine; $line++) {
$codeLine = str_replace("\t", ' ', $phpFile[$line - 1]);
$spanClass = '';
if ($line === $lineNumber) {
$spanClass = 'highlight';
}
$content .= '' . $this->escapeHtml($codeLine) . '';
}
$content .= '';
$content .= '