HHH-11615 : Avoid wrapping an AuditException in another AuditException
This commit is contained in:
parent
ed69c7c5b6
commit
87a37b02f4
|
@ -52,6 +52,10 @@ public class MiddleEmbeddableComponentMapper implements MiddleComponentMapper, C
|
||||||
);
|
);
|
||||||
return componentInstance;
|
return componentInstance;
|
||||||
}
|
}
|
||||||
|
catch (AuditException e) {
|
||||||
|
// just throw the AuditException without wrapping in another AuditException
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
throw new AuditException( e );
|
throw new AuditException( e );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue