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