Class QueryNodeParseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.lucene.queryparser.flexible.core.QueryNodeException
-
- org.apache.lucene.queryparser.flexible.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
-
-
Constructor Summary
Constructors Constructor Description QueryNodeParseException(java.lang.Throwable throwable)QueryNodeParseException(Message message)QueryNodeParseException(Message message, java.lang.Throwable throwable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBeginColumn()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 returnedintgetBeginLine()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 returnedjava.lang.StringgetErrorToken()java.lang.CharSequencegetQuery()voidsetNonLocalizedMessage(Message message)voidsetQuery(java.lang.CharSequence query)-
Methods inherited from class org.apache.lucene.queryparser.flexible.core.QueryNodeException
getLocalizedMessage, getLocalizedMessage, getMessage, getMessageObject, toString
-
-
-
-
Method Detail
-
setQuery
public void setQuery(java.lang.CharSequence query)
-
getQuery
public java.lang.CharSequence getQuery()
-
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
-
-