muParserX 2.0.0
Loading...
Searching...
No Matches
mup::ErrorContext Struct Reference

Error context class. More...

#include <mpError.h>

Public Member Functions

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

Public Attributes

string_type Ident
string_type Hint
EErrorCodes Errc
char_type Type1
char_type Type2
int Arg
int Pos

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.

Here is the call graph for this function:

Member Data Documentation

◆ Arg

int mup::ErrorContext::Arg

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

◆ Errc

EErrorCodes mup::ErrorContext::Errc

Additional message

◆ Hint

string_type mup::ErrorContext::Hint

The identifier of the token that caused the error.

◆ Ident

string_type mup::ErrorContext::Ident

The expression string.

◆ Pos

int mup::ErrorContext::Pos

The number of arguments that were expected.

◆ Type1

char_type mup::ErrorContext::Type1

The error code

◆ Type2

char_type mup::ErrorContext::Type2

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


muParserX documentation - (C) 2010 Ingo Berg