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

com.raynigon.unit_api.jackson.exception.MissingUnitException Maven / Gradle / Ivy

The newest version!
package com.raynigon.unit_api.jackson.exception;

import com.fasterxml.jackson.databind.JsonMappingException;

import javax.measure.Quantity;
import java.io.Closeable;

public class MissingUnitException extends JsonMappingException {

    public MissingUnitException(Closeable processor, String unitName) {
        super(processor, "Missing Unit: " + unitName);
    }

    @SuppressWarnings("rawtypes")
    public MissingUnitException(Closeable processor, Class quantityType) {
        super(processor, "Missing Unit for Quantity Type: " + quantityType);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy