[TYPO3-german] Gibt es in ExtBase keine Mglichkeit die Exception abzufangen? Exception while property mapping
Philipp Gampe
philipp.gampe at typo3.org
Thu Dec 24 09:55:36 CET 2015
Hi Alexander Averbuch,
Alexander Averbuch wrote:
> wo genau im Controller soll ich das machen? Die Exception wird geworfen,
> bevor die Action show aufgerufen wird.
Versuche es mal mit:
/**
* @param RequestInterface $request
* @param ResponseInterface $response
* @throws \Exception
*/
public function processRequest(RequestInterface $request,
ResponseInterface $response)
{
try {
parent::processRequest($request, $response);
} catch (\Exception $exception) {
$this->handleKnownExceptionsElseThrowAgain($exception);
}
}
https://github.com/TYPO3-extensions/news/blob/master/Classes/Controller/NewsBaseController.php#L48
Viele Grüße
--
Philipp Gampe – PGP-Key 0AD96065 – TYPO3 UG Bonn/Köln
Certified Integrator – Active contributor TYPO3 CMS
TYPO3 .... inspiring people to share!
More information about the TYPO3-german
mailing list