BAEL-4844: Fixed exception handling anti-pattern in the aspect.

This commit is contained in:
bhandy
2021-04-23 10:25:35 -04:00
parent 9ac44f6344
commit 5a51a71953

View File

@@ -13,11 +13,12 @@ public aspect TracingAspect {
LOG.trace("Entering " + signature);
try {
return proceed();
} catch (Exception e) {
LOG.trace("Exception thrown from " + signature, e);
throw e;
} finally {
LOG.trace("Exiting " + signature);
}
}
after() throwing (Exception e) : traceAnnotatedClasses() {
LOG.trace("Exception thrown from " + thisJoinPoint.getSignature().toShortString(), e);
}
}