You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
887 B
Java
43 lines
887 B
Java
package com.engine.common.util.excel;
|
|
|
|
import org.apache.commons.lang3.exception.ContextedRuntimeException;
|
|
|
|
/**
|
|
* @Author: sy
|
|
* @Description:
|
|
* @Date: 2024/6/5
|
|
**/
|
|
public class ExcelParseException extends ContextedRuntimeException {
|
|
|
|
private static final long serialVersionUID = -8696742623977630854L;
|
|
|
|
public ExcelParseException(String message) {
|
|
super(message);
|
|
this.msgCode = DEFAULT_CODE;
|
|
}
|
|
|
|
public ExcelParseException(String message, Throwable cause) {
|
|
super(message, cause);
|
|
this.msgCode = DEFAULT_CODE;
|
|
}
|
|
|
|
/**
|
|
* 默认异常编码
|
|
*/
|
|
private static final String DEFAULT_CODE = "EXCP0000";
|
|
|
|
/**
|
|
* 异常编码
|
|
*/
|
|
private String msgCode;
|
|
|
|
public String getMsgCode() {
|
|
return msgCode;
|
|
}
|
|
|
|
public void setMsgCode(String msgCode) {
|
|
this.msgCode = msgCode;
|
|
}
|
|
|
|
}
|