package cn.gistack.system.user.sync.exception; /** * @author wd */ public class BusinessException extends RuntimeException { private static final long serialVersionUID = -1660410201568475030L; private Integer errCode; private String errMsg; public BusinessException(ErrorCode err) { super(err.msg); this.errCode = err.code; this.errMsg = err.msg; } public BusinessException(Integer errCode, String errMsg) { super(errMsg); this.errCode = errCode; this.errMsg = errMsg; } public BusinessException(ErrorCode err, String errMsg) { super(errMsg); this.errCode = err.code; this.errMsg = errMsg; } public BusinessException(Integer errCode, String errMsg, Throwable cause) { super(errMsg, cause); this.errCode = errCode; this.errMsg = errMsg; } public Integer getErrCode() { return errCode; } public String getErrMsg() { return errMsg; } }