![JAR search and dependency download from the Maven repository](/logo.png)
com.bq.oss.lib.queries.exception.InvalidParameterException Maven / Gradle / Ivy
package com.bq.oss.lib.queries.exception;
/**
* @author Alexander De Leon [email protected]
*/
public class InvalidParameterException extends IllegalArgumentException {
public static enum Parameter {
AGGREGATION, QUERY, SORT, PAGE_SIZE, PAGE, SEARCH
}
private final Parameter parameter;
private final Object value;
public InvalidParameterException(Parameter parameter, Object value, String message, Exception cause) {
super(message, cause);
this.parameter = parameter;
this.value = value;
}
public InvalidParameterException(Parameter parameter, Object value, String message) {
super(message);
this.parameter = parameter;
this.value = value;
}
public Parameter getParameter() {
return parameter;
}
public Object getValue() {
return value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy