Save This Page
Home » lucene-3.0.1-src » org.apache.lucene.queryParser.standard.parser » [javadoc | source]
org.apache.lucene.queryParser.standard.parser
public class: ParseException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         org.apache.lucene.queryParser.core.QueryNodeException
            org.apache.lucene.queryParser.core.QueryNodeParseException
               org.apache.lucene.queryParser.standard.parser.ParseException

All Implemented Interfaces:
    NLSException, Serializable

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.
Fields inherited from org.apache.lucene.queryParser.core.QueryNodeException:
message
Fields inherited from java.lang.Exception:
serialVersionUID
Constructor:
 public ParseException() 
 public ParseException(Message message) 
 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.
Methods from org.apache.lucene.queryParser.core.QueryNodeParseException:
getBeginColumn,   getBeginLine,   getErrorToken,   getQuery,   setBeginColumn,   setBeginLine,   setErrorToken,   setNonLocalizedMessage,   setQuery
Methods from org.apache.lucene.queryParser.core.QueryNodeException:
getLocalizedMessage,   getLocalizedMessage,   getMessage,   getMessageObject,   toString
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait