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

org.hildan.fxgson.adapters.properties.primitives.NullPrimitiveException Maven / Gradle / Ivy

package org.hildan.fxgson.adapters.properties.primitives;

/**
 * Thrown when a null value is found in place of a primitive type value, and the adapter was not configured to accept
 * null values.
 */
public class NullPrimitiveException extends RuntimeException {

    /**
     * Constructs a new NullPrimitiveException.
     *
     * @param pathInJson the path to the null value that was found instead of a valid primitive
     */
    public NullPrimitiveException(String pathInJson) {
        super("Illegal null value for a primitive type at path " + pathInJson);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy