HHH-11615 : Avoid wrapping an AuditException in another AuditException

(cherry picked from commit 87a37b02f4)
This commit is contained in:
Gail Badner 2017-10-19 01:33:43 -07:00
parent 4c2961f8d0
commit 3f49cf09c3
1 changed files with 4 additions and 0 deletions

View File

@ -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 );
}