CellInvalidFormulaException

Inheritance: java.lang.Object, java.lang.Throwable, java.lang.Exception, java.lang.RuntimeException, com.aspose.ms.System.Exception, com.aspose.slides.OOXMLException, com.aspose.slides.PptxException, com.aspose.slides.PptxEditException

public class CellInvalidFormulaException extends PptxEditException

The exception that is thrown when a calculated formula is not correct or was not parsed.

Constructors

ConstructorDescription
CellInvalidFormulaException()Initializes a new instance of the CellInvalidFormulaException class.
CellInvalidFormulaException(String message)Initializes a new instance of the CellInvalidFormulaException class with a specified error message.
CellInvalidFormulaException(String message, RuntimeException innerException)Initializes a new instance of the CellInvalidFormulaException class with a specified error message and a reference to the inner exception that is the cause of this exception.
CellInvalidFormulaException(String message, String reference)Initializes a new instance of the CellInvalidFormulaException class with a specified error message and a cell reference that contains the invalid formula.

Methods

MethodDescription
getReference()Gets a cell reference that contains the invalid formula.

CellInvalidFormulaException()

public CellInvalidFormulaException()

Initializes a new instance of the CellInvalidFormulaException class.

CellInvalidFormulaException(String message)

public CellInvalidFormulaException(String message)

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

Parameters:

ParameterTypeDescription
messagejava.lang.StringA string that describes the error.

CellInvalidFormulaException(String message, RuntimeException innerException)

public CellInvalidFormulaException(String message, RuntimeException innerException)

Initializes a new instance of the CellInvalidFormulaException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Parameters:

ParameterTypeDescription
messagejava.lang.StringA string that describes the error.
innerExceptionjava.lang.RuntimeExceptionThe exception that is the cause of the current exception.

CellInvalidFormulaException(String message, String reference)

public CellInvalidFormulaException(String message, String reference)

Initializes a new instance of the CellInvalidFormulaException class with a specified error message and a cell reference that contains the invalid formula.

Parameters:

ParameterTypeDescription
messagejava.lang.StringA string that describes the error.
referencejava.lang.StringA string that describes a reference to the inner exception

getReference()

public final String getReference()

Gets a cell reference that contains the invalid formula.

Returns: java.lang.String