diff --git a/easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelAnalysisException.java b/easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelAnalysisException.java index 64e3353b..28a60901 100644 --- a/easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelAnalysisException.java +++ b/easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelAnalysisException.java @@ -4,7 +4,7 @@ package com.alibaba.excel.exception; * * @author jipengfei */ -public class ExcelAnalysisException extends ExcelException { +public class ExcelAnalysisException extends ExcelRuntimeException { public ExcelAnalysisException() {} diff --git a/easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelCommonException.java b/easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelCommonException.java index 5ab28025..4370159b 100644 --- a/easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelCommonException.java +++ b/easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelCommonException.java @@ -4,7 +4,7 @@ package com.alibaba.excel.exception; * * @author Jiaju Zhuang */ -public class ExcelCommonException extends ExcelException { +public class ExcelCommonException extends ExcelRuntimeException { public ExcelCommonException() {} diff --git a/easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelDataConvertException.java b/easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelDataConvertException.java index c490fa40..f351287a 100644 --- a/easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelDataConvertException.java +++ b/easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelDataConvertException.java @@ -16,7 +16,7 @@ import lombok.Setter; @Getter @Setter @EqualsAndHashCode -public class ExcelDataConvertException extends ExcelException { +public class ExcelDataConvertException extends ExcelRuntimeException { /** * NotNull. */ diff --git a/easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelException.java b/easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelException.java deleted file mode 100644 index da6401f5..00000000 --- a/easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelException.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.alibaba.excel.exception; - -/** - * Excel Exception - * @author Jiaju Zhuang - */ -public class ExcelException extends RuntimeException { - public ExcelException() {} - - public ExcelException(String message) { - super(message); - } - - public ExcelException(String message, Throwable cause) { - super(message, cause); - } - - public ExcelException(Throwable cause) { - super(cause); - } -} diff --git a/easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelGenerateException.java b/easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelGenerateException.java index 3565cec3..95ac9083 100644 --- a/easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelGenerateException.java +++ b/easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelGenerateException.java @@ -3,7 +3,7 @@ package com.alibaba.excel.exception; /** * @author jipengfei */ -public class ExcelGenerateException extends ExcelException { +public class ExcelGenerateException extends ExcelRuntimeException { public ExcelGenerateException(String message) { super(message); diff --git a/easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelRuntimeException.java b/easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelRuntimeException.java new file mode 100644 index 00000000..5d053201 --- /dev/null +++ b/easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelRuntimeException.java @@ -0,0 +1,21 @@ +package com.alibaba.excel.exception; + +/** + * Excel Exception + * @author Jiaju Zhuang + */ +public class ExcelRuntimeException extends RuntimeException { + public ExcelRuntimeException() {} + + public ExcelRuntimeException(String message) { + super(message); + } + + public ExcelRuntimeException(String message, Throwable cause) { + super(message, cause); + } + + public ExcelRuntimeException(Throwable cause) { + super(cause); + } +}