|
muParserX 2.0.0
|
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 |
Error context class.
This struct contains the data associated with parser erros.
| 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.

| int mup::ErrorContext::Arg |
For type conflicts only! This is the type that was expected.
| EErrorCodes mup::ErrorContext::Errc |
Additional message
| string_type mup::ErrorContext::Hint |
The identifier of the token that caused the error.
| string_type mup::ErrorContext::Ident |
The expression string.
| int mup::ErrorContext::Pos |
The number of arguments that were expected.
| char_type mup::ErrorContext::Type1 |
The error code
| char_type mup::ErrorContext::Type2 |
For type conflicts only! This is the type that was actually found.