Table of Contents

Class ParseException

Namespace
Utils.Expressions
Assembly
Utils.dll

Represents the base class for all parsing exceptions that occur during expression parsing in the Utils.Expressions namespace.

public abstract class ParseException : Exception, ISerializable
Inheritance
ParseException
Implements
Derived
Inherited Members
Extension Methods

Remarks

Initializes a new instance of the ParseException class with the specified error message, error index, and an inner exception.

Constructors

ParseException(string, int)

Initializes a new instance of the ParseException class with the specified error message and error index.

protected ParseException(string message, int errorIndex)

Parameters

message string

A short description of the parsing error.

errorIndex int

The position (index) near where the parsing error occurred.

ParseException(string, int, Exception)

Represents the base class for all parsing exceptions that occur during expression parsing in the Utils.Expressions namespace.

protected ParseException(string message, int errorIndex, Exception inner)

Parameters

message string

A short description of the parsing error.

errorIndex int

The position (index) near where the parsing error occurred.

inner Exception

The inner exception that caused this parsing error.

Remarks

Initializes a new instance of the ParseException class with the specified error message, error index, and an inner exception.

Methods

Assert(string, string, int)

Asserts that the given input string matches the required string. If they do not match, a ParseWrongSymbolException is thrown.

public static void Assert(string strInput, string strNeed, int index)

Parameters

strInput string

The actual string to check.

strNeed string

The expected string.

index int

The position (index) in the input where this check occurs.

Exceptions

ParseWrongSymbolException

Thrown if strInput does not match strNeed.