mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix SQLException handling
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user