Class ExcelUnreadableException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.zkoss.pivot.util.ExcelUnreadableException
All Implemented Interfaces:
Serializable

public class ExcelUnreadableException extends IOException
Signals that Excel would report an unreadable content error when opening the exported xlsx file. For each string-valued field, its values should not contain two strings that only differ by lower/upper cases. e.g. 'ABC' and 'Abc' would be considered duplicate data by Excel.
Since:
2.2.0
Author:
Neil
See Also:
  • Constructor Details

    • ExcelUnreadableException

      public ExcelUnreadableException()
    • ExcelUnreadableException

      public ExcelUnreadableException(PivotField _field, String _oldValue, String _newValue)
      Constructs an ExcelUnreadableException with the field and duplicate values that causes 'unreadable content' to occur
      Parameters:
      _field - the PivotField having the duplicate values
      _oldValue - the duplicate value that occur earlier in the raw data
      _newValue - the duplicate value that occur later in the raw data
  • Method Details

    • getField

      public PivotField getField()
      Returns:
      the PivotField having the duplicate values
    • getOldValue

      public String getOldValue()
      Returns:
      the duplicate value that occur earlier in the raw data
    • getNewValue

      public String getNewValue()
      Returns:
      the duplicate value that occur later in the raw data
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable