Browse Source

统一异常

pull/2317/merge
Jiaju Zhuang 3 years ago
parent
commit
e957accd53
  1. 2
      easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelAnalysisException.java
  2. 2
      easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelCommonException.java
  3. 2
      easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelDataConvertException.java
  4. 21
      easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelException.java
  5. 2
      easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelGenerateException.java

2
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 RuntimeException {
public class ExcelAnalysisException extends ExcelException {
public ExcelAnalysisException() {}

2
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 RuntimeException {
public class ExcelCommonException extends ExcelException {
public ExcelCommonException() {}

2
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 RuntimeException {
public class ExcelDataConvertException extends ExcelException {
/**
* NotNull.
*/

21
easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelException.java

@ -0,0 +1,21 @@
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);
}
}

2
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 RuntimeException {
public class ExcelGenerateException extends ExcelException {
public ExcelGenerateException(String message) {
super(message);

Loading…
Cancel
Save