2 namespace TYPO3\CMS\Core\Error;
43 set_exception_handler(array($this,
'handleException'));
56 $messageObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
57 \TYPO3\CMS\Core\Messaging\ErrorpageMessage::class,
61 $messageObj->output();
88 if ($exception->getCode() === 1396795884) {
92 if ($exception instanceof Http\AbstractClientErrorException) {
96 if (TYPO3_MODE ===
'FE') {
97 return $GLOBALS[
'TSFE']->beUserLogin;
111 return htmlspecialchars($exception->getTitle());
127 if ($exception->getCode() > 0) {
128 $moreInformationLink =
'<p>More information regarding this error might be available <a href="'
129 . TYPO3_URL_EXCEPTION . $exception->getCode() .
'" target="_blank">online</a>.</p>';
131 $moreInformationLink =
'';
133 return htmlspecialchars($exception->getMessage()) . $moreInformationLink;