Utility class to handle query parse errors.
More...
#include <QueryParseError.h>
|
static String | _getClassName () |
|
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 error.
|
|
static String | parseError (const QueryParserTokenPtr ¤tToken, Collection< Collection< int32_t > > expectedTokenSequences, Collection< String > tokenImage) |
| Generate a parse error message and returns it.
|
|
|
static String | addEscapes (const String &str) |
| Replaces unprintable characters by their escaped (or unicode escaped) equivalents in the given string.
|
|
Utility class to handle query parse errors.
◆ ~QueryParseError()
virtual Lucene::QueryParseError::~QueryParseError |
( |
| ) |
|
|
virtual |
◆ _getClassName()
static String Lucene::QueryParseError::_getClassName |
( |
| ) |
|
|
inlinestatic |
◆ addEscapes()
static String Lucene::QueryParseError::addEscapes |
( |
const String & |
str | ) |
|
|
staticprotected |
Replaces unprintable characters by their escaped (or unicode escaped) equivalents in the given string.
◆ getClassName()
virtual String Lucene::QueryParseError::getClassName |
( |
| ) |
|
|
inlinevirtual |
◆ lexicalError()
static String Lucene::QueryParseError::lexicalError |
( |
bool |
EOFSeen, |
|
|
int32_t |
lexState, |
|
|
int32_t |
errorLine, |
|
|
int32_t |
errorColumn, |
|
|
const String & |
errorAfter, |
|
|
wchar_t |
curChar |
|
) |
| |
|
static |
Returns a detailed message for the Error when it is thrown by the token manager to indicate a lexical error.
- Parameters
-
EOFSeen | Indicates if EOF caused the lexical error |
curLexState | Lexical state in which this error occurred |
errorLine | Line number when the error occurred |
errorColumn | Column number when the error occurred |
errorAfter | Prefix that was seen before this error occurred |
curChar | The offending character |
◆ parseError()
Generate a parse error message and returns it.
- Parameters
-
currentToken | This is the last token that has been consumed successfully. If this object has been created due to a parse error, the token following this token will (therefore) be the first error token. |
expectedTokenSequences | Each entry in this array is an array of integers. Each array of integers represents a sequence of tokens (by their ordinal values) that is expected at this point of the parse. |
tokenImage | This is a reference to the "tokenImage" array of the generated parser within which the parse error occurred. |
◆ shared_from_this()
boost::shared_ptr< QueryParseError > Lucene::QueryParseError::shared_from_this |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: