From 3b3ee02e26a8eb7e98f0b6b2b623438ae6841e6f Mon Sep 17 00:00:00 2001 From: Gregory Shrago Date: Thu, 21 Oct 2010 17:35:19 +0400 Subject: [PATCH] fix SQLException handling --- .../util/src/com/intellij/execution/rmi/RemoteObject.java | 4 ---- .../org/jetbrains/idea/maven/facade/MavenRemoteObject.java | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/platform/util/src/com/intellij/execution/rmi/RemoteObject.java b/platform/util/src/com/intellij/execution/rmi/RemoteObject.java index 65ea38844586..76f34961a86a 100644 --- a/platform/util/src/com/intellij/execution/rmi/RemoteObject.java +++ b/platform/util/src/com/intellij/execution/rmi/RemoteObject.java @@ -113,8 +113,4 @@ public class RemoteObject implements Remote, Unreferenced { return false; } - public RuntimeException rethrowException(Throwable e) { - Throwable wrap = wrapException(e); - throw wrap instanceof RuntimeException ? (RuntimeException)wrap : new RuntimeException(wrap); - } } diff --git a/plugins/maven/facade-api/src/org/jetbrains/idea/maven/facade/MavenRemoteObject.java b/plugins/maven/facade-api/src/org/jetbrains/idea/maven/facade/MavenRemoteObject.java index 59ff9eb3c0f0..d6e66e4782ba 100644 --- a/plugins/maven/facade-api/src/org/jetbrains/idea/maven/facade/MavenRemoteObject.java +++ b/plugins/maven/facade-api/src/org/jetbrains/idea/maven/facade/MavenRemoteObject.java @@ -22,4 +22,9 @@ public class MavenRemoteObject extends RemoteObject{ protected boolean isKnownException(Throwable ex) { return ex.getClass().getName().startsWith(MavenRemoteObject.class.getPackage().getName()); } + + public RuntimeException rethrowException(Throwable e) { + Throwable wrap = wrapException(e); + throw wrap instanceof RuntimeException ? (RuntimeException)wrap : new RuntimeException(wrap); + } }