7 #ifndef QUERYPARSEERROR_H
8 #define QUERYPARSEERROR_H
29 static String
lexicalError(
bool EOFSeen, int32_t lexState, int32_t errorLine, int32_t errorColumn,
30 const String& errorAfter,
wchar_t curChar);
virtual ~QueryParseError()
static String parseError(const QueryParserTokenPtr ¤tToken, Collection< Collection< int32_t > > expectedTokenSequences, Collection< String > tokenImage)
Generate a parse error message and returns it.
Utility class to handle query parse errors.
Definition: QueryParseError.h:15
Base class for all Lucene classes.
Definition: LuceneObject.h:31
static String lexicalError(bool EOFSeen, int32_t lexState, int32_t errorLine, int32_t errorColumn, const String &errorAfter, wchar_t curChar)
Returns a detailed message for the Error when it is thrown by the token manager to indicate a lexical...
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< QueryParserToken > QueryParserTokenPtr
Definition: LuceneTypes.h:273
Utility template class to handle collections that can be safely copied and shared.
Definition: Collection.h:17
static String addEscapes(const String &str)
Replaces unprintable characters by their escaped (or unicode escaped) equivalents in the given string...