Lucene++ - a full-featured, c++ search engine
API Documentation

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

QueryParseError.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2014 Alan Wright. All rights reserved.
3 // Distributable under the terms of either the Apache License (Version 2.0)
4 // or the GNU Lesser General Public License.
6
7 #ifndef QUERYPARSEERROR_H
8 #define QUERYPARSEERROR_H
9
10 #include "LuceneObject.h"
11
12 namespace Lucene {
13
15 class QueryParseError : public LuceneObject {
16 public:
17 virtual ~QueryParseError();
18 LUCENE_CLASS(QueryParseError);
19
20 public:
29 static String lexicalError(bool EOFSeen, int32_t lexState, int32_t errorLine, int32_t errorColumn,
30 const String& errorAfter, wchar_t curChar);
31
41 static String parseError(const QueryParserTokenPtr& currentToken, Collection< Collection<int32_t> > expectedTokenSequences,
42 Collection<String> tokenImage);
43
44
45 protected:
48 static String addEscapes(const String& str);
49 };
50
51 }
52
53 #endif
Lucene::QueryParseError::~QueryParseError
virtual ~QueryParseError()
Lucene::QueryParseError::parseError
static String parseError(const QueryParserTokenPtr &currentToken, Collection< Collection< int32_t > > expectedTokenSequences, Collection< String > tokenImage)
Generate a parse error message and returns it.
LuceneObject.h
Lucene::QueryParseError
Utility class to handle query parse errors.
Definition: QueryParseError.h:15
Lucene::LuceneObject
Base class for all Lucene classes.
Definition: LuceneObject.h:31
Lucene::QueryParseError::lexicalError
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...
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::QueryParserTokenPtr
boost::shared_ptr< QueryParserToken > QueryParserTokenPtr
Definition: LuceneTypes.h:273
Lucene::Collection
Utility template class to handle collections that can be safely copied and shared.
Definition: Collection.h:17
Lucene::QueryParseError::addEscapes
static String addEscapes(const String &str)
Replaces unprintable characters by their escaped (or unicode escaped) equivalents in the given string...

clucene.sourceforge.net