just use a regular RuntimeException
This commit is contained in:
parent
309beabd95
commit
90177997d2
|
@ -1,6 +1,5 @@
|
||||||
package org.fenix.llanfair;
|
package org.fenix.llanfair;
|
||||||
|
|
||||||
import com.sun.xml.internal.ws.encoding.soap.SerializationException;
|
|
||||||
import com.thoughtworks.xstream.XStream;
|
import com.thoughtworks.xstream.XStream;
|
||||||
import com.thoughtworks.xstream.converters.Converter;
|
import com.thoughtworks.xstream.converters.Converter;
|
||||||
import com.thoughtworks.xstream.converters.MarshallingContext;
|
import com.thoughtworks.xstream.converters.MarshallingContext;
|
||||||
|
@ -61,7 +60,7 @@ public class SerializationUtils {
|
||||||
try {
|
try {
|
||||||
writer.setValue(objectToBase64(icon));
|
writer.setValue(objectToBase64(icon));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new SerializationException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
writer.endNode();
|
writer.endNode();
|
||||||
}
|
}
|
||||||
|
@ -73,7 +72,7 @@ public class SerializationUtils {
|
||||||
try {
|
try {
|
||||||
icon = base64ToObject(reader.getValue());
|
icon = base64ToObject(reader.getValue());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new SerializationException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
reader.moveUp();
|
reader.moveUp();
|
||||||
return icon;
|
return icon;
|
||||||
|
|
Reference in a new issue