Skip to content

Commit

Permalink
Merge pull request #136 from jglick/ProxyException-suppressed
Browse files Browse the repository at this point in the history
ProxyException should also retain any suppressed exceptions from the original
  • Loading branch information
oleg-nenashev authored Nov 30, 2016
2 parents 697a0d5 + e2b67f7 commit b3d7136
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/hudson/remoting/ProxyException.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ public ProxyException(Throwable cause) {
// wrap all the chained exceptions
if(cause.getCause()!=null)
initCause(new ProxyException(cause.getCause()));

for (Throwable suppressed : cause.getSuppressed()) {
addSuppressed(new ProxyException(suppressed));
}
}

/**
Expand Down

0 comments on commit b3d7136

Please sign in to comment.