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 883e612d45
commit 1a5f956752
1 changed files with 4 additions and 3 deletions

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);
}
}