## org.apache.lucene.queryParser.core
Class QueryNodeParseException

    java.lang.Object
      java.lang.Throwable
          java.lang.Exception
              org.apache.lucene.queryParser.core.QueryNodeException
                  org.apache.lucene.queryParser.core.QueryNodeParseException

All Implemented Interfaces:
  java.io.Serializable, NLSException

Direct Known Subclasses:
  ParseException

    public class QueryNodeParseException

extends QueryNodeException

This should be thrown when an exception happens during the query parsing from string to the query node tree.

See Also:
  `QueryNodeException`, `SyntaxParser`, `QueryNode`, Serialized Form

Field Summary

Fields inherited from class org.apache.lucene.queryParser.core.QueryNodeException
`message`

Constructor Summary
`QueryNodeParseException(Message message)`
`QueryNodeParseException(Message message, java.lang.Throwable throwable)`
`QueryNodeParseException(java.lang.Throwable throwable)`

Method Summary
`int` `getBeginColumn()` For EndOfLine and EndOfFile ("<EOF>") parsing problems the last char in the string is returned For the case where the parser is not able to figure out the line and column number -1 will be returned
`int` `getBeginLine()` For EndOfLine and EndOfFile ("<EOF>") parsing problems the last char in the string is returned For the case where the parser is not able to figure out the line and column number -1 will be returned
`java.lang.String` `getErrorToken()`
`java.lang.CharSequence` `getQuery()`
`protected void` `setBeginColumn(int beginColumn)`
`protected void` `setBeginLine(int beginLine)`
`protected void` `setErrorToken(java.lang.String errorToken)`
`void` `setNonLocalizedMessage(Message message)`
`void` `setQuery(java.lang.CharSequence query)`

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

### QueryNodeParseException

    public QueryNodeParseException(Message message)

### QueryNodeParseException

    public QueryNodeParseException(java.lang.Throwable throwable)

### QueryNodeParseException

    public QueryNodeParseException(Message message,
                                   java.lang.Throwable throwable)

Method Detail

### setQuery

    public void setQuery(java.lang.CharSequence query)

### getQuery

    public java.lang.CharSequence getQuery()

### setErrorToken

    protected void setErrorToken(java.lang.String errorToken)

  Parameters:
    `errorToken` - the errorToken in the query

### getErrorToken

    public java.lang.String getErrorToken()

### setNonLocalizedMessage

    public void setNonLocalizedMessage(Message message)

### getBeginLine

    public int getBeginLine()

  For EndOfLine and EndOfFile ("<EOF>") parsing problems the last char in the string is returned For the case where the parser is not able to figure out the line and column number -1 will be returned

  Returns:
    line where the problem was found

### getBeginColumn

    public int getBeginColumn()

  For EndOfLine and EndOfFile ("<EOF>") parsing problems the last char in the string is returned For the case where the parser is not able to figure out the line and column number -1 will be returned

  Returns:
    column of the first char where the problem was found

### setBeginLine

    protected void setBeginLine(int beginLine)

  Parameters:
    `beginLine` - the beginLine to set

### setBeginColumn

    protected void setBeginColumn(int beginColumn)

  Parameters:
    `beginColumn` - the beginColumn to set

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