[]
        
(Showing Draft Content)

InvalidFormulaException

Class InvalidFormulaException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.grapecity.documents.excel.InvalidFormulaException
All Implemented Interfaces:
Serializable

public class InvalidFormulaException extends RuntimeException
The exception that is thrown when a formula is invalid.

 Workbook workbook = new Workbook();
 IWorksheet worksheet = workbook.getWorksheets().get(0);

 try {
     worksheet.getRange("A1").setFormula("=SUM(A1:");
 } catch (InvalidFormulaException exception) {
     String message = exception.getMessage();
 }
 
  • Constructor Details

    • InvalidFormulaException

      public InvalidFormulaException(String message)
      Initializes a new instance of the InvalidFormulaException class with a specified error message.
      Parameters:
      message - The message that describes the error.