com.lithium.ldn.starql.exceptions.InvalidQueryException Maven / Gradle / Ivy
package com.lithium.ldn.starql.exceptions;
/**
* @author David Esposito
*/
public class InvalidQueryException extends Exception {
private static final long serialVersionUID = 1L;
private final String query;
private final String message;
public InvalidQueryException(String message, String query) {
super(message);
this.query = query;
this.message = super.getMessage() + " in: " + query;
}
public String getQuery() {
return query;
}
@Override
public String getMessage() {
return message;
}
}