All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.swak.frame.exception.BizException Maven / Gradle / Ivy

There is a newer version: 2.3.1
Show newest version
package com.swak.frame.exception;

import com.swak.frame.enums.BasicErrCode;
import com.swak.frame.enums.IResultCode;
import com.swak.frame.exception.core.BaseException;

/**
 * BizException is known Exception, no need retry
 */
public class BizException extends BaseException {

    private static final long serialVersionUID = 1L;

    public BizException(String errMessage){
        super(errMessage);
        this.setErrCode(BasicErrCode.BIZ_ERROR);
    }

    public BizException(IResultCode errCode, String errMessage){
    	super(errMessage);
    	this.setErrCode(errCode);
    }

    public BizException(String errMessage, Throwable e) {
        super(errMessage, e);
        this.setErrCode(BasicErrCode.BIZ_ERROR);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy