Skip to content
Permalink
Browse files
[GERONIMO-4576] Make persistence exceptions more visible to client
  • Loading branch information
gnodet committed Nov 10, 2016
1 parent 818a7dc commit ccb61b451feb4e5bb5568fe0d3cb13e3a9cb5759
Showing 1 changed file with 5 additions and 0 deletions.
@@ -538,6 +538,11 @@ private void beforeCompletion(List syncs) {
private void markRollbackCause(Throwable e) {
if (markRollbackCause == null) {
markRollbackCause = e;
} else if (markRollbackCause instanceof SetRollbackOnlyException) {
Throwable cause = markRollbackCause.getCause();
if (cause == null) {
markRollbackCause.initCause(e);
}
}
}

0 comments on commit ccb61b4

Please sign in to comment.