Show / Hide Table of Contents

Class FormulaParseException

The exception thrown when a formula parse error occurs.

Inheritance
System.Object
FormulaParseException
Namespace: Infragistics.Documents.Excel
Assembly: IgniteUI.Blazor.Documents.Excel.dll
Syntax
public class FormulaParseException : Exception

Constructors

FormulaParseException()

Initializes a new instance of the FormulaParseException class.

Declaration
public FormulaParseException()

FormulaParseException(Int32, String, String, String)

Initializes a new instance of the FormulaParseException class with a specified error message and information which helps determine the location of the parse error in the formula.

Declaration
public FormulaParseException(int charIndexOfError, string formulaValue, string message, string portionWithError)
Parameters
Type Name Description
System.Int32 charIndexOfError

The character index in the formulaValue parameter where the parse error occurred.

System.String formulaValue

The formula which had the error being parsed.

System.String message

The message that describes the error.

System.String portionWithError

The portion of the formula which had the error being parsed.

FormulaParseException(String)

Initializes a new instance of the FormulaParseException class with a specified error message.

Declaration
public FormulaParseException(string message)
Parameters
Type Name Description
System.String message

The message that describes the error.

FormulaParseException(String, Exception)

Initializes a new instance of the FormulaParseException class with a specified error message.

Declaration
public FormulaParseException(string message, Exception innerException)
Parameters
Type Name Description
System.String message

The message that describes the error.

System.Exception innerException

The exception that is the cause of this exception.

Properties

CharIndexOfError

Gets the character index in the FormulaValue at which the parse error occurred.

Declaration
public int CharIndexOfError { get; }
Property Value
Type Description
System.Int32

The character index in the FormulaValue at which the parse error occurred.

FormulaValue

Gets the formula string which had the error being parsed.

Declaration
public string FormulaValue { get; }
Property Value
Type Description
System.String

The formula string which had the error being parsed.

Message

Gets the error message and the portion of the formula with the error.

Declaration
public override string Message { get; }
Property Value
Type Description
System.String

PortionWithError

Gets the portion of the formula which contains the error.

Declaration
public string PortionWithError { get; }
Property Value
Type Description
System.String