5f38ab594a3a8bb287aa487771002b81fdbd0368
[cql-java-moved-to-github.git] / src / main / java / org / z3950 / zing / cql / UnknownPositionException.java
1 // $Id: UnknownPositionException.java,v 1.2 2002-11-29 16:42:54 mike Exp $
2
3 package org.z3950.zing.cql;
4 import java.lang.Exception;
5
6
7 /**
8  * Exception indicating that a position was not recognised.
9  * When rendering a tree out as PQF, each term is classified either as
10  * <TT>any</TT>, <TT>first</TT>, <TT>last</TT> or
11  * <TT>firstAndLast</TT>, depending on whether it begins and/or ends
12  * with the word-anchoring meta-character <TT>^</TT>.  Its
13  * classification is looked up as a <TT>position</TT> in the PQF
14  * configuration.  If the position is not configured, we throw one of
15  * these babies.
16  *
17  * @version $Id: UnknownPositionException.java,v 1.2 2002-11-29 16:42:54 mike Exp $
18  */
19 public class UnknownPositionException extends PQFTranslationException {
20     /**
21      * Creates a new <TT>UnknownPositionException</TT>.
22      * @param s
23      *  The position for which there was no PQF configuration.
24      */
25     public UnknownPositionException(String s) {
26         super(s);
27     }
28 }