Package org.zkoss.pivot.util
Class ExcelUnreadableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.zkoss.pivot.util.ExcelUnreadableException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionExcelUnreadableException(PivotField _field, String _oldValue, String _newValue) Constructs an ExcelUnreadableException with the field and duplicate values that causes 'unreadable content' to occur -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ExcelUnreadableException
public ExcelUnreadableException() -
ExcelUnreadableException
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
- Returns:
- the PivotField having the duplicate values
-
getOldValue
- Returns:
- the duplicate value that occur earlier in the raw data
-
getNewValue
- Returns:
- the duplicate value that occur later in the raw data
-
getMessage
- Overrides:
getMessagein classThrowable
-