com.silanis.esl.api.JsonDeserializationException Maven / Gradle / Ivy
package com.silanis.esl.api;
import com.fasterxml.jackson.core.type.TypeReference;
import static java.lang.String.format;
/**
* @author ehardy
*/
public class JsonDeserializationException extends RuntimeException {
public JsonDeserializationException( Class> targetType, Throwable cause ) {
super( format( "Failed to deserialize json string to target type %s", targetType.getName() ), cause );
}
public JsonDeserializationException( TypeReference reference, Throwable cause ) {
super( format( "Failed to deserialize json string to target type %s", reference.getType() ), cause );
}
}