[]
        
(Showing Draft Content)

NumberFormatParseException

Class NumberFormatParseException

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

public final class NumberFormatParseException extends RuntimeException
Represents an exception thrown when a range number format cannot be parsed.

 try {
     worksheet.getRange("A1").setNumberFormat("¥* #,##0.00_; ¥* #,##0.00_; ¥* \"-\";@_");
 } catch (NumberFormatParseException exception) {
     String message = exception.getMessage();
 }
 
  • Constructor Details

    • NumberFormatParseException

      public NumberFormatParseException()
      Constructs a new NumberFormatParseException object.
    • NumberFormatParseException

      public NumberFormatParseException(RuntimeException inner)
      Constructs a new NumberFormatParseException object with the specified inner exception.
      Parameters:
      inner - The inner exception that caused this exception to be thrown.