package com.ghb.base.common.exception;

import com.ghb.base.common.constant.CommonConstant;

/**
 * @Description: 业务提醒异常(用于操作业务提醒)
 * @date: 2024-04-26
 * @author: scott
 */
public class GhbBootBizTipException extends RuntimeException {
	private static final long serialVersionUID = 1L;

	/**
	 * 返回给前端的错误code
	 */
	private int errCode = CommonConstant.SC_INTERNAL_SERVER_ERROR_500;

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

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

	public int getErrCode() {
		return errCode;
	}

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