Class XLSXParseErrorException

All Implemented Interfaces:
Serializable

@OpenApiAll public class XLSXParseErrorException extends ParseErrorException
Application-level exception thrown when a template has a syntax or other error which prevents it from being parsed. The exception message will be return in XLSX meaning.
Since:
Dec 14, 2009
See Also:
  • Constructor Details

    • XLSXParseErrorException

      public XLSXParseErrorException(String message)
      Constructs a new exception with the specified detail message.
      Parameters:
      message - the detail message. The detail message is saved for later retrieval by the getMessage() method.
    • XLSXParseErrorException

      public XLSXParseErrorException(ParseErrorException message)
      Constructs a new exception with the specified detail message.
      Parameters:
      message - the detail message. The detail message is saved for later retrieval by the getMessage() method.
    • XLSXParseErrorException

      public XLSXParseErrorException(String message, Template template, String[] position, int columnNumber, String source)
      Constructs a new exception with the specified detail message.
      Parameters:
      message - the detail message. The detail message is saved for later retrieval by the getMessage() method.
      template - template
      position - position
      columnNumber - column number
      source - template content until offset of error character.
  • Method Details

    • getSheetNumber

      public String getSheetNumber()
      Return a sheet number.
      Returns:
      the sheet number
    • setSheetNumber

      public void setSheetNumber(String sheetNumber)
      Set a sheet number.
      Parameters:
      sheetNumber - the sheet number to set
    • getCellNumber

      public String getCellNumber()
      Return a cellNumber.
      Returns:
      the cellNumber
    • setCellNumber

      public void setCellNumber(String cellNumber)
      Set a cellNumber.
      Parameters:
      cellNumber - the cellNumber to set
    • getMessage

      public String getMessage()
      Return a full message.
      Overrides:
      getMessage in class ParseErrorException
      Returns:
      the full message
    • toString

      public String toString()
      Return string representation of this exception.
      Overrides:
      toString in class ParseErrorException
      Returns:
      a string representation of this exception