ParserError struct
Details about any parser errors that were found when parsing the expression.
Contents
- Reference
Public types
- enum ParserErrorType { Unknown = 0, FunctionUnknown = 1, FunctionWrongArgs = 2, FunctionInvalidParams = 3, FunctionNamedArgsError = 4 }
Public variables
- QString errorMsg
- The message for the error at this location.
- ParserErrorType errorType
- The type of parser error that was found.
- int firstColumn
- The first column that contained the error in the parser.
- int firstLine
- The first line that contained the error in the parser.
- int lastColumn
- The last column that contained the error in the parser.
- int lastLine
- The last line that contained the error in the parser.
Enum documentation
enum QgsExpression:: ParserError:: ParserErrorType
| Enumerators | |
|---|---|
| Unknown |
Unknown error type. |
| FunctionUnknown |
Function was unknown. |
| FunctionWrongArgs |
Function was called with the wrong number of args. |
| FunctionInvalidParams |
Function was called with invalid args. |
| FunctionNamedArgsError |
Non named function arg used after named arg. |
Variable documentation
int QgsExpression:: ParserError:: firstColumn
The first column that contained the error in the parser.
Depending on the error sometimes this doesn't mean anything.
int QgsExpression:: ParserError:: firstLine
The first line that contained the error in the parser.
Depending on the error sometimes this doesn't mean anything.