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
messagestringA short description of the parsing error.
errorIndexintThe 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
messagestringA short description of the parsing error.
errorIndexintThe position (index) near where the parsing error occurred.
innerExceptionThe 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
strInputstringThe actual string to check.
strNeedstringThe expected string.
indexintThe position (index) in the input where this check occurs.
Exceptions
- ParseWrongSymbolException
Thrown if
strInputdoes not matchstrNeed.