Exception for signaling errors when parsing a query-string.
More...
#include <libCZI_exceptions.h>
|
| enum | ErrorType { SyntaxError,
UnbalancedParenthesis,
IllformedExpression,
InvalidNumberFormat
} |
| | Values that represent different error conditions.
|
| |
Exception for signaling errors when parsing a query-string.
◆ LibCZIQueryParseException() [1/2]
| libCZI::LibCZIQueryParseException::LibCZIQueryParseException |
( |
const char * |
szErrMsg, |
|
|
ErrorType |
errorType |
|
) |
| |
|
inline |
Constructor for the LibCZIQueryParseException-exception. This exception is used to signal errors when parsing a query-string.
- Parameters
-
| szErrMsg | Message describing the error. |
| errorType | Type of the error. |
◆ LibCZIQueryParseException() [2/2]
| libCZI::LibCZIQueryParseException::LibCZIQueryParseException |
( |
const char * |
szErrMsg, |
|
|
ErrorType |
errorType, |
|
|
int |
indexOfParseError |
|
) |
| |
|
inlineexplicit |
Constructor for the LibCZIQueryParseException-exception. This exception is used to signal errors when parsing a query-string.
- Parameters
-
| szErrMsg | Message describing the error. |
| errorType | Type of the error. |
| indexOfParseError | The index to the character of the query string where the error was detected. If negative, this value is not valid. |
◆ GetErrorType()
| ErrorType libCZI::LibCZIQueryParseException::GetErrorType |
( |
| ) |
const |
|
inline |
Gets error type
- Returns
- The error type.
◆ GetPositionAfterWhichParserErrorOccurred()
| int libCZI::LibCZIQueryParseException::GetPositionAfterWhichParserErrorOccurred |
( |
| ) |
const |
|
inline |
Gets position of the character in the query-string after which the parser error occurred. If negative, this value is not valid.
- Returns
- The position after which parser error occurred.
The documentation for this class was generated from the following file: