com.raynigon.unit_api.jackson.exception.UnknownUnitException 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 UnknownUnitException extends JsonMappingException {
public UnknownUnitException(Closeable processor, String unitName) {
super(processor, "Unknown Unit: " + unitName);
}
@SuppressWarnings("rawtypes")
public UnknownUnitException(Closeable processor, Class quantityType) {
super(processor, "Unknown Unit for Quantity Type: " + quantityType);
}
}