/** * @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); }
/** * @Flow\AfterThrowing("Ttree\Scheduler\Aspect\LoggingAspect->allTasks") * @param JoinPoint $jointPoint * @throws \Exception */ public function logTaskException(JoinPoint $jointPoint) { /** @var Task $task */ $exception = $jointPoint->getException(); $this->systemLogger->logException($exception, array('task' => $jointPoint->getClassName())); }