All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.silanis.esl.api.JsonDeserializationException Maven / Gradle / Ivy

There is a newer version: 11.59.0
Show newest version
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 );
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy