* @version $Id: CQLParseException.java,v 1.2 2002-11-06 20:13:45 mike Exp $
*/
public class CQLParseException extends Exception {
+ private int pos;
/**
* Creates a new <TT>CQLParseException</TT>.
* @param s
* An error message describing the problem with the query,
* usually a syntax error of some kind.
*/
- public CQLParseException(String s) {
+ public CQLParseException(String s, int pos) {
super(s);
+ this.pos = pos;
+ }
+
+ /**
+ * Character position of the parsing error.
+ * @return
+ */
+ public int getPosition() {
+ return pos;
}
}