Browse Source

统一异常

pull/2317/merge
Jiaju Zhuang 3 years ago
parent
commit
0143f2e514
  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
  6. 21
      easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelRuntimeException.java

2
easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelAnalysisException.java

@ -4,7 +4,7 @@ package com.alibaba.excel.exception;
* *
* @author jipengfei * @author jipengfei
*/ */
public class ExcelAnalysisException extends ExcelException { public class ExcelAnalysisException extends ExcelRuntimeException {
public ExcelAnalysisException() {} 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 * @author Jiaju Zhuang
*/ */
public class ExcelCommonException extends ExcelException { public class ExcelCommonException extends ExcelRuntimeException {
public ExcelCommonException() {} public ExcelCommonException() {}

2
easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelDataConvertException.java

@ -16,7 +16,7 @@ import lombok.Setter;
@Getter @Getter
@Setter @Setter
@EqualsAndHashCode @EqualsAndHashCode
public class ExcelDataConvertException extends ExcelException { public class ExcelDataConvertException extends ExcelRuntimeException {
/** /**
* NotNull. * NotNull.
*/ */

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

@ -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);
}
}

2
easyexcel-core/src/main/java/com/alibaba/excel/exception/ExcelGenerateException.java

@ -3,7 +3,7 @@ package com.alibaba.excel.exception;
/** /**
* @author jipengfei * @author jipengfei
*/ */
public class ExcelGenerateException extends ExcelException { public class ExcelGenerateException extends ExcelRuntimeException {
public ExcelGenerateException(String message) { public ExcelGenerateException(String message) {
super(message); super(message);

21
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);
}
}
Loading…
Cancel
Save