org.apache.lucene.queryParser.standard.parser
Class ParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.lucene.queryParser.core.QueryNodeException
              extended by org.apache.lucene.queryParser.core.QueryNodeParseException
                  extended by org.apache.lucene.queryParser.standard.parser.ParseException
All Implemented Interfaces:
Serializable, org.apache.lucene.messages.NLSException

public class ParseException
extends QueryNodeParseException

This exception is thrown when parse errors are encountered. You can explicitly create objects of this exception type by calling the method generateParseException in the generated parser. You can modify this class to customize your error reporting mechanisms so long as you retain the public fields.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.lucene.queryParser.core.QueryNodeException
message
 
Constructor Summary
ParseException()
           
ParseException(org.apache.lucene.messages.Message message)
           
ParseException(Token currentTokenVal, int[][] expectedTokenSequencesVal, String[] tokenImageVal)
          This constructor is used by the method "generateParseException" in the generated parser.
 
Method Summary
 
Methods inherited from class org.apache.lucene.queryParser.core.QueryNodeParseException
getBeginColumn, getBeginLine, getErrorToken, getQuery, setBeginColumn, setBeginLine, setErrorToken, setNonLocalizedMessage, setQuery
 
Methods inherited from class org.apache.lucene.queryParser.core.QueryNodeException
getLocalizedMessage, getLocalizedMessage, getMessage, getMessageObject, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParseException

public ParseException(Token currentTokenVal,
                      int[][] expectedTokenSequencesVal,
                      String[] tokenImageVal)
This constructor is used by the method "generateParseException" in the generated parser. Calling this constructor generates a new object of this type with the fields "currentToken", "expectedTokenSequences", and "tokenImage" set.


ParseException

public ParseException(org.apache.lucene.messages.Message message)

ParseException

public ParseException()


Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.