bcParser.NET
Math Parser for .NET
Public Member Functions | List of all members
Bestcode.MathParser.ParserException Class Reference

ParserException is thrown by some methods of MathParser implementation if an expression cannot be parsed. These methods are: Parse(), Evaluate(), GetValue() /summary> More...

Inherits Exception.

Public Member Functions

 ParserException (String msg, String errPart, String expression)
 Constructor. More...
 
String GetInvalidPortionOfExpression ()
 Returns the expression string that cannot be parsed. More...
 
String GetSubExpression ()
 Returns the subexpression that is the immediate parent of the error portion.
For example, if the expression is 3+LN(MAX(4,)) then getInvalidPortionOfExpression() would return MAX(4,) and getSubExpression() would return LN(MAX(4,))

The returned sub expressions may not exactly match the original string supplied as the expression since space characters and paranthesis may be substituted for efficient parsing. More...
 

Detailed Description

ParserException is thrown by some methods of MathParser implementation if an expression cannot be parsed. These methods are: Parse(), Evaluate(), GetValue() /summary>

Constructor & Destructor Documentation

Bestcode.MathParser.ParserException.ParserException ( String  msg,
String  errPart,
String  expression 
)

Constructor.

Parameters
msg
errPart
expression

Member Function Documentation

String Bestcode.MathParser.ParserException.GetInvalidPortionOfExpression ( )

Returns the expression string that cannot be parsed.

Returns
String - expression portion that cannot be parsed.
String Bestcode.MathParser.ParserException.GetSubExpression ( )

Returns the subexpression that is the immediate parent of the error portion.
For example, if the expression is 3+LN(MAX(4,)) then getInvalidPortionOfExpression() would return MAX(4,) and getSubExpression() would return LN(MAX(4,))

The returned sub expressions may not exactly match the original string supplied as the expression since space characters and paranthesis may be substituted for efficient parsing.

Returns
String - the expression.