flatten exception chain a bit

This commit is contained in:
Gregory Shrago
2010-12-13 18:51:59 +03:00
parent 60f8c39994
commit 8d7ec330e7
@@ -102,7 +102,7 @@ public class RemoteObject implements Remote, Unreferenced {
}
if (foreignException) {
Throwable wrapper = new Throwable(ex.toString());
final RuntimeException wrapper = new RuntimeException(ex.toString());
wrapper.setStackTrace(ex.getStackTrace());
ex = wrapper;
}