muParserX  2.0.0
Public Member Functions | Public Attributes | List of all members
mup::ErrorContext Struct Reference

Error context class. More...

Public Member Functions

 ErrorContext (EErrorCodes a_iErrc=ecUNDEFINED, int a_iPos=-1, string_type a_sIdent=string_type())
 Creates an empty ErrorContext object. More...
 

Public Attributes

string_type Ident
 

The expression string.


 
string_type Hint
 

The identifier of the token that caused the error.


 
EErrorCodes Errc
 

Additional message


 
char_type Type1
 

The error code


 
char_type Type2
 

For type conflicts only! This is the type that was actually found.


 
int Arg
 

For type conflicts only! This is the type that was expected.


 
int Pos
 

The number of arguments that were expected.


 

Detailed Description

Error context class.

This struct contains the data associated with parser erros.

Constructor & Destructor Documentation

◆ ErrorContext()

mup::ErrorContext::ErrorContext ( EErrorCodes  a_iErrc = ecUNDEFINED,
int  a_iPos = -1,
string_type  a_sIdent = string_type() 
)

Creates an empty ErrorContext object.

Constructs an empty Error context structure.

All Members are initialised to an invalid state.


muParserX documentation - (C) 2010 Ingo Berg