Class QueryNodeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.lucene.queryparser.flexible.core.QueryNodeException
-
- All Implemented Interfaces:
Serializable,NLSException
- Direct Known Subclasses:
QueryNodeParseException
public class QueryNodeException extends Exception implements NLSException
This exception should be thrown if something wrong happens when dealing withQueryNodes.It also supports NLS messages.
- See Also:
Message,NLS,NLSException,QueryNode, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QueryNodeException(Throwable throwable)QueryNodeException(Message message)QueryNodeException(Message message, Throwable throwable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLocalizedMessage()StringgetLocalizedMessage(Locale locale)StringgetMessage()MessagegetMessageObject()StringtoString()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Field Detail
-
message
protected Message message
-
-
Method Detail
-
getMessageObject
public Message getMessageObject()
- Specified by:
getMessageObjectin interfaceNLSException- Returns:
- a instance of a class that implements the Message interface
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
getLocalizedMessage
public String getLocalizedMessage()
- Overrides:
getLocalizedMessagein classThrowable
-
-