BAEL-4844: Fixed exception handling anti-pattern in the aspect.
This commit is contained in:
parent
883e612d45
commit
1a5f956752
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue