Including the actual exception if an AuditStrategy can't be created
This commit is contained in:
parent
23891ff11a
commit
aa33b57242
|
@ -111,7 +111,9 @@ public class AuditConfiguration {
|
||||||
Class<?> auditStrategyClass = Thread.currentThread().getContextClassLoader().loadClass(auditEntCfg.getAuditStrategyName());
|
Class<?> auditStrategyClass = Thread.currentThread().getContextClassLoader().loadClass(auditEntCfg.getAuditStrategyName());
|
||||||
strategy = (AuditStrategy) auditStrategyClass.newInstance();
|
strategy = (AuditStrategy) auditStrategyClass.newInstance();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new MappingException(String.format("Unable to create AuditStrategy[%s] instance." , auditEntCfg.getAuditStrategyName()));
|
throw new MappingException(
|
||||||
|
String.format("Unable to create AuditStrategy[%s] instance." , auditEntCfg.getAuditStrategyName()),
|
||||||
|
e);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strategy instanceof ValidityAuditStrategy) {
|
if (strategy instanceof ValidityAuditStrategy) {
|
||||||
|
|
Loading…
Reference in New Issue