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);
|
LOG.trace("Entering " + signature);
|
||||||
try {
|
try {
|
||||||
return proceed();
|
return proceed();
|
||||||
} catch (Exception e) {
|
|
||||||
LOG.trace("Exception thrown from " + signature, e);
|
|
||||||
throw e;
|
|
||||||
} finally {
|
} finally {
|
||||||
LOG.trace("Exiting " + signature);
|
LOG.trace("Exiting " + signature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
after() throwing (Exception e) : traceAnnotatedClasses() {
|
||||||
|
LOG.trace("Exception thrown from " + thisJoinPoint.getSignature().toShortString(), e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue