fix SQLException handling

This commit is contained in:
Gregory Shrago
2010-10-21 17:44:54 +04:00
parent 28ff122c38
commit 3b3ee02e26
2 changed files with 5 additions and 4 deletions
@@ -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);
}
}
@@ -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);
}
}