HHH-11615 : Avoid wrapping an AuditException in another AuditException

This commit is contained in:
Gail Badner 2017-10-19 01:33:43 -07:00
parent ed69c7c5b6
commit 87a37b02f4
1 changed files with 4 additions and 0 deletions

View File

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