com.raynigon.unit_api.jackson.exception.MissingUnitException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jackson-module Show documentation
Show all versions of jackson-module Show documentation
The jackson-module is a part of the unit-api
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);
}
}