Finish (more or less) to CQL-to-PQF translator.
[cql-java-moved-to-github.git] / src / org / z3950 / zing / cql / UnknownRelationException.java
index 6029bf4..4d65e72 100644 (file)
@@ -1,4 +1,4 @@
-// $Id: UnknownRelationException.java,v 1.1 2002-11-06 00:05:58 mike Exp $
+// $Id: UnknownRelationException.java,v 1.2 2002-11-06 20:13:45 mike Exp $
 
 package org.z3950.zing.cql;
 import java.lang.Exception;
@@ -9,12 +9,18 @@ import java.lang.Exception;
  * At compilation time, we accept any syntactically valid relation;
  * but when rendering a tree out as PQF, we need to translate the
  * relations into sets of Type-1 query attributes.  If we can't do
- * that, we throw one of these babies.
+ * that, because the PQF configuration doesn't know about a relation,
+ * we throw one of these babies.
  *
- * @version $Id: UnknownRelationException.java,v 1.1 2002-11-06 00:05:58 mike Exp $
+ * @version $Id: UnknownRelationException.java,v 1.2 2002-11-06 20:13:45 mike Exp $
  */
-public class UnknownRelationException extends Exception {
-    UnknownRelationException(String s) {
+public class UnknownRelationException extends PQFTranslationException {
+    /**
+     * Creates a new <TT>UnknownRelationException</TT>.
+     * @param s
+     * The relation for which there was no PQF configuration.
+     */
+    public UnknownRelationException(String s) {
        super(s);
     }
 }