Skip to content

Commit

Permalink
Add suppressed exceptions to exception that is thrown
Browse files Browse the repository at this point in the history
  • Loading branch information
kokosing committed Jan 28, 2019
1 parent 1f284a1 commit efe8ca0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public <V> V run(String callableName, Callable<V> callable)
catch (InterruptedException ie) {
Thread.currentThread().interrupt();
Exception exception = new RuntimeException(ie);
addSuppressed(new RuntimeException(ie), suppressedExceptions);
addSuppressed(exception, suppressedExceptions);
throw exception;
}
}
Expand Down

0 comments on commit efe8ca0

Please sign in to comment.