generator.server.javatool.base.main.error.AssertionException.mustache Maven / Gradle / Ivy
package {{packageName}}.shared.error.domain;
import java.util.Map;
public abstract class AssertionException extends RuntimeException {
private final String field;
protected AssertionException(String field, String message) {
super(message);
this.field = field;
}
public abstract AssertionErrorType type();
public String field() {
return field;
}
public Map parameters() {
return Map.of();
}
}