|
@@ -88,12 +88,7 @@ public class RemoteException extends IOException {
|
|
throws Exception {
|
|
throws Exception {
|
|
Constructor<? extends IOException> cn = cls.getConstructor(String.class);
|
|
Constructor<? extends IOException> cn = cls.getConstructor(String.class);
|
|
cn.setAccessible(true);
|
|
cn.setAccessible(true);
|
|
- String firstLine = this.getMessage();
|
|
|
|
- int eol = firstLine.indexOf('\n');
|
|
|
|
- if (eol>=0) {
|
|
|
|
- firstLine = firstLine.substring(0, eol);
|
|
|
|
- }
|
|
|
|
- IOException ex = cn.newInstance(firstLine);
|
|
|
|
|
|
+ IOException ex = cn.newInstance(this.getMessage());
|
|
ex.initCause(this);
|
|
ex.initCause(this);
|
|
return ex;
|
|
return ex;
|
|
}
|
|
}
|
|
@@ -117,4 +112,8 @@ public class RemoteException extends IOException {
|
|
return new RemoteException(attrs.getValue("class"),
|
|
return new RemoteException(attrs.getValue("class"),
|
|
attrs.getValue("message"));
|
|
attrs.getValue("message"));
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public String toString() {
|
|
|
|
+ return className + ": " + getMessage();
|
|
|
|
+ }
|
|
}
|
|
}
|