[TYPO3-german] 404-Handling Exception in Extbase typo3 4.7
arianesardinas
asardinas at gmx.de
Tue May 12 11:23:02 CEST 2015
Hallo
ich versuche eine Error-Handling in Extbase fertig zu machen. Nach diese Beschreibung:
http://blog.mindscreen.de/2013/404-handling-statt-exception-in-extbase-catching-1297759968/
Allerdings nutze ich Typo3 4.7
public function processRequest(Tx_Extbase_MVC_RequestInterface $request, Tx_Extbase_MVC_ResponseInterface $response) {
Exception- PropertyMapper in typo3 4.7
}
In typo3 6 funktionoert:
catch(\TYPO3\CMS\Extbase\Property\Exception $e) {
if ($e->getPrevious() instanceof \TYPO3\CMS\Extbase\Property\Exception\TargetNotFoundException) {
$GLOBALS['TSFE']->pageNotFoundAndExit('Die gewünschte Stellenausschreibung wurde nicht gefunden.');
} else {
throw $e;
}
}
aber in Typo3 4.7 nicht.
ich habe folgendes probiert:
catch(Tx_Extbase_Property_Exception $e) {
}
aber das geht leider nicht. Kann jemand mir hierbei helfen?
vielen dank!
More information about the TYPO3-german
mailing list