personthecat.catlib.exception.JsonMappingException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of catlib-quilt Show documentation
Show all versions of catlib-quilt Show documentation
Utilities for serialization, commands, noise generation, IO, and some new data types.
The newest version!
package personthecat.catlib.exception;
import lombok.Getter;
import static personthecat.catlib.util.Shorthand.f;
@Getter
public class JsonMappingException extends RuntimeException {
private final String parent;
private final String field;
public JsonMappingException(final String parent, final String field) {
super(f("{}.{} is required", parent, field));
this.parent = parent;
this.field = field;
}
}