Remove CVS expansions
[cql-java-moved-to-github.git] / src / main / java / org / z3950 / zing / cql / CQLParseException.java
1
2 package org.z3950.zing.cql;
3
4
5 /**
6  * Exception indicating that an error ocurred parsing CQL.
7  *
8  */
9 public class CQLParseException extends Exception {
10     private int pos;
11     /**
12      * Creates a new <TT>CQLParseException</TT>.
13      * @param s
14      *  An error message describing the problem with the query,
15      *  usually a syntax error of some kind.
16      */
17     public CQLParseException(String s, int pos) {
18         super(s);
19         this.pos = pos;
20     }
21     
22     /**
23      * Character position of the parsing error.
24      * @return 
25      */
26     public int getPosition() {
27       return pos;
28     }
29 }
30