package cn.stylefeng.roses.kernel.auth.api.exception;

import cn.stylefeng.roses.kernel.auth.api.constants.AuthConstants;
import cn.stylefeng.roses.kernel.rule.abstracts.AbstractExceptionEnum;
import cn.stylefeng.roses.kernel.rule.exception.base.ServiceException;

/**
 * 认证类异常
 *
 * @author fengshuonan
 * @date 2020/10/15 15:59
 */
public class AuthException extends ServiceException {

    public AuthException(String errorCode, String userTip) {
        super(AuthConstants.AUTH_MODULE_NAME, errorCode, userTip);
    }

    public AuthException(AbstractExceptionEnum exception, String userTip) {
        super(AuthConstants.AUTH_MODULE_NAME, exception.getErrorCode(), userTip);
    }

    public AuthException(AbstractExceptionEnum exception) {
        super(AuthConstants.AUTH_MODULE_NAME, exception);
    }

}
