|
@@ -22,7 +22,6 @@ import java.io.IOException;
|
|
|
import java.lang.reflect.Constructor;
|
|
|
|
|
|
import org.xml.sax.Attributes;
|
|
|
-import org.znerd.xmlenc.XMLOutputter;
|
|
|
|
|
|
public class RemoteException extends IOException {
|
|
|
/** For java.io.Serializable */
|
|
@@ -93,20 +92,6 @@ public class RemoteException extends IOException {
|
|
|
return ex;
|
|
|
}
|
|
|
|
|
|
- /** Write the object to XML format */
|
|
|
- public void writeXml(String path, XMLOutputter doc) throws IOException {
|
|
|
- doc.startTag(RemoteException.class.getSimpleName());
|
|
|
- doc.attribute("path", path);
|
|
|
- doc.attribute("class", getClassName());
|
|
|
- String msg = getLocalizedMessage();
|
|
|
- int i = msg.indexOf("\n");
|
|
|
- if (i >= 0) {
|
|
|
- msg = msg.substring(0, i);
|
|
|
- }
|
|
|
- doc.attribute("message", msg.substring(msg.indexOf(":") + 1).trim());
|
|
|
- doc.endTag();
|
|
|
- }
|
|
|
-
|
|
|
/** Create RemoteException from attributes */
|
|
|
public static RemoteException valueOf(Attributes attrs) {
|
|
|
return new RemoteException(attrs.getValue("class"),
|