com.alibaba.cola.exception.SysException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cola-core Show documentation
Show all versions of cola-core Show documentation
Cola framework core components
package com.alibaba.cola.exception;
import com.alibaba.cola.dto.ErrorCodeI;
import com.alibaba.cola.exception.framework.BaseException;
import com.alibaba.cola.exception.framework.BasicErrorCode;
/**
* System Exception is unexpected Exception, retry might work again
*
* @author Danny.Lee 2018/1/27
*/
public class SysException extends BaseException {
private static final long serialVersionUID = 4355163994767354840L;
public SysException(String errMessage){
super(errMessage);
this.setErrCode(BasicErrorCode.SYS_ERROR);
}
public SysException(ErrorCodeI errCode, String errMessage) {
super(errMessage);
this.setErrCode(errCode);
}
public SysException(String errMessage, Throwable e) {
super(errMessage, e);
this.setErrCode(BasicErrorCode.SYS_ERROR);
}
public SysException(String errMessage, ErrorCodeI errorCode, Throwable e) {
super(errMessage, e);
this.setErrCode(errorCode);
}
}