moved JsonSerializer and JsonDeserializer to com.sap.sse.shared.android to make them re-usable by all web bundles

This commit is contained in:
Axel Uhl
2021-01-21 16:54:42 +01:00
parent e8cfda647e
commit bd06b75e3d
357 changed files with 504 additions and 498 deletions
@@ -1,31 +0,0 @@
package com.sap.sailing.domain.common.racelog.tracking;
import java.io.IOException;
import java.io.Serializable;
public class TransformationException extends IOException implements Serializable {
private static final long serialVersionUID = -7795777645371428971L;
public TransformationException() {
}
public TransformationException(Class<?> from, Class<?> to, String at, Throwable e) {
super("Couldn't transform "+from.getName()+" into "+to.getName()+" at "+at, e);
}
public TransformationException(Class<?> from, Class<?> to, String at) {
this(from, to, at, null);
}
public TransformationException(String message, Throwable e) {
super(message, e);
}
public TransformationException(Throwable e) {
super(e);
}
public TransformationException(String message) {
super(message);
}
}
@@ -1,5 +1,7 @@
package com.sap.sailing.domain.common.racelog.tracking;
import com.sap.sse.common.TransformationException;
/**
* Handle transformation between two types. Most likely use-case is serialization,
* e.g. for JSON documents or database persistence.