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:
Serializable,NLSException
- Direct Known Subclasses:
ParseException
This should be thrown when an exception happens during the query parsing from string to the query
node tree.
- See Also:
-
Field Summary
Fields inherited from class org.apache.lucene.queryparser.flexible.core.QueryNodeException
message -
Constructor Summary
ConstructorsConstructorDescriptionQueryNodeParseException(Throwable throwable) QueryNodeParseException(Message message) QueryNodeParseException(Message message, Throwable throwable) -
Method Summary
Modifier and TypeMethodDescriptionintFor 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 returnedintFor 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 returnedgetQuery()protected voidsetBeginColumn(int beginColumn) protected voidsetBeginLine(int beginLine) protected voidsetErrorToken(String errorToken) voidsetNonLocalizedMessage(Message message) voidsetQuery(CharSequence query) Methods inherited from class org.apache.lucene.queryparser.flexible.core.QueryNodeException
getLocalizedMessage, getLocalizedMessage, getMessage, getMessageObject, toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
QueryNodeParseException
-
QueryNodeParseException
-
QueryNodeParseException
-
-
Method Details
-
setQuery
-
getQuery
-
setErrorToken
- Parameters:
errorToken- the errorToken in the query
-
getErrorToken
-
setNonLocalizedMessage
-
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
-