com.codepoetics.octarine.json.deserialisation.SafeDeserialiser Maven / Gradle / Ivy
package com.codepoetics.octarine.json.deserialisation;
import com.fasterxml.jackson.core.JsonParser;
import java.io.IOException;
public interface SafeDeserialiser extends Deserialiser {
default S apply(JsonParser p) {
try {
return applyUnsafe(p);
} catch (IOException e) {
throw new DeserialisationException(e);
}
}
S applyUnsafe(JsonParser p) throws IOException;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy