/** * Forward all exceptions that are handled in TypoScript rendering exception handlers to Sentry * * @Flow\After("within(TYPO3\TypoScript\Core\ExceptionHandlers\AbstractRenderingExceptionHandler) && method(.*->handle())") * @param \TYPO3\Flow\Aop\JoinPointInterface $joinPoint */ public function captureException(\TYPO3\Flow\Aop\JoinPointInterface $joinPoint) { $exception = $joinPoint->getMethodArgument('exception'); $this->errorHandler->handleException($exception, array('typoScriptPath' => $joinPoint->getMethodArgument('typoScriptPath'))); }
/** * @Flow\AfterThrowing("within(TYPO3\Fluid\Core\ViewHelper\AbstractViewHelper) && method(.*->render())") * @param \TYPO3\Flow\Aop\JoinPoint $joinPoint */ public function catchException(\TYPO3\Flow\Aop\JoinPoint $joinPoint) { $exception = $joinPoint->getException(); $this->errorHandler->handleException($exception); }