package org.jeecg.common.exception;

import org.jeecg.common.constant.CommonConstant;

/**
 * bison业务异常
 *
 * @author sunweidong
 * @since 2024/8/27
 */
public class BisonException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private int errCode = CommonConstant.SC_INTERNAL_SERVER_ERROR_500;

    public BisonException(String message) {
        super(message);
    }

    public BisonException(String message, int errCode) {
        super(message);
        this.errCode = errCode;
    }

    public int getErrCode() {
        return errCode;
    }

    public BisonException(Throwable cause) {
        super(cause);
    }

    public BisonException(String message, Throwable cause) {
        super(message, cause);
    }
}
