QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
Public Types | Public Attributes | List of all members
QgsExpression::ParserError Struct Reference

Details about any parser errors that were found when parsing the expression. More...

#include <qgsexpression.h>

Public Types

enum  ParserErrorType {
  Unknown = 0 , FunctionUnknown = 1 , FunctionWrongArgs = 2 , FunctionInvalidParams = 3 ,
  FunctionNamedArgsError = 4
}
 

Public Attributes

QString errorMsg
 The message for the error at this location.
 
ParserErrorType errorType = ParserErrorType::Unknown
 The type of parser error that was found.
 
int firstColumn = 0
 The first column that contained the error in the parser.
 
int firstLine = 0
 The first line that contained the error in the parser.
 
int lastColumn = 0
 The last column that contained the error in the parser.
 
int lastLine = 0
 The last line that contained the error in the parser.
 

Detailed Description

Details about any parser errors that were found when parsing the expression.

Since
QGIS 3.0

Definition at line 198 of file qgsexpression.h.

Member Enumeration Documentation

◆ ParserErrorType

Enumerator
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.

Definition at line 200 of file qgsexpression.h.

Member Data Documentation

◆ errorMsg

QString QgsExpression::ParserError::errorMsg

The message for the error at this location.

Definition at line 217 of file qgsexpression.h.

◆ errorType

ParserErrorType QgsExpression::ParserError::errorType = ParserErrorType::Unknown

The type of parser error that was found.

Definition at line 212 of file qgsexpression.h.

◆ firstColumn

int QgsExpression::ParserError::firstColumn = 0

The first column that contained the error in the parser.

Depending on the error sometimes this doesn't mean anything.

Definition at line 229 of file qgsexpression.h.

◆ firstLine

int QgsExpression::ParserError::firstLine = 0

The first line that contained the error in the parser.

Depending on the error sometimes this doesn't mean anything.

Definition at line 223 of file qgsexpression.h.

◆ lastColumn

int QgsExpression::ParserError::lastColumn = 0

The last column that contained the error in the parser.

Definition at line 239 of file qgsexpression.h.

◆ lastLine

int QgsExpression::ParserError::lastLine = 0

The last line that contained the error in the parser.

Definition at line 234 of file qgsexpression.h.


The documentation for this struct was generated from the following file: