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
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExcelUnreadableException()
ExcelUnreadableException(PivotField _field, String _oldValue, String _newValue)
Constructs an ExcelUnreadableException with the field and duplicate values that causes 'unreadable content' to occur
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PivotField
getField()
String
getMessage()
String
getNewValue()
String
getOldValue()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
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 Detail
-
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 classThrowable
-
-