edu.northwestern.at.wordhoard.swing.calculator.cql
Class CQLSyntaxError

java.lang.Object
  extended by edu.northwestern.at.wordhoard.swing.calculator.cql.CQLSyntaxError

public class CQLSyntaxError
extends java.lang.Object

Error for invalid CQL specification.


Constructor Summary
protected CQLSyntaxError()
          Don't allow instantiations but do allow overrides.
 
Method Summary
static void badElement(CQLQueryTokenizer tokenizer, java.lang.String errorSource, java.lang.String badText)
          Constructs and throws InvalidCQLQueryException exception.
static void badTermType(CQLQueryTokenizer tokenizer, java.lang.String errorSource, java.lang.String badText)
          Constructs and throws InvalidCQLQueryException exception.
static void termEndsTooSoon(CQLQueryTokenizer tokenizer, java.lang.String errorSource, java.lang.String badText)
          Constructs and throws InvalidCQLQueryException exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CQLSyntaxError

protected CQLSyntaxError()
Don't allow instantiations but do allow overrides.

Method Detail

badElement

public static void badElement(CQLQueryTokenizer tokenizer,
                              java.lang.String errorSource,
                              java.lang.String badText)
                       throws InvalidCQLQueryException
Constructs and throws InvalidCQLQueryException exception.

Parameters:
tokenizer - Parser tokenizer.
errorSource - Source of error.
badText - Text at which error occurs.
Throws:
InvalidCQLQueryException

termEndsTooSoon

public static void termEndsTooSoon(CQLQueryTokenizer tokenizer,
                                   java.lang.String errorSource,
                                   java.lang.String badText)
                            throws InvalidCQLQueryException
Constructs and throws InvalidCQLQueryException exception.

Parameters:
tokenizer - Parser tokenizer.
errorSource - Source of error.
badText - Text at which error occurs.
Throws:
InvalidCQLQueryException

badTermType

public static void badTermType(CQLQueryTokenizer tokenizer,
                               java.lang.String errorSource,
                               java.lang.String badText)
                        throws InvalidCQLQueryException
Constructs and throws InvalidCQLQueryException exception.

Parameters:
tokenizer - Parser tokenizer.
errorSource - Source of error.
badText - Text at which error occurs.
Throws:
InvalidCQLQueryException