From 8d7ec330e73487aae451aa9bff634f0fb724fe1e Mon Sep 17 00:00:00 2001 From: Gregory Shrago Date: Mon, 13 Dec 2010 18:30:54 +0300 Subject: [PATCH] flatten exception chain a bit --- platform/util/src/com/intellij/execution/rmi/RemoteObject.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/util/src/com/intellij/execution/rmi/RemoteObject.java b/platform/util/src/com/intellij/execution/rmi/RemoteObject.java index 76f34961a86a..7ddb088747e6 100644 --- a/platform/util/src/com/intellij/execution/rmi/RemoteObject.java +++ b/platform/util/src/com/intellij/execution/rmi/RemoteObject.java @@ -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; }