package cn.reghao.tnb.auth.app.security.exception;

import org.springframework.security.core.AuthenticationException;

/**
 * @author reghao
 * @date 2023-08-04 15:32:38
 */
public class AccountLoginException extends AuthenticationException {
    private final long userId;
    private final String loginId;

    public AccountLoginException(String msg, long userId, String loginId) {
        super(msg);
        this.userId = userId;
        this.loginId = loginId;
    }

    public long getUserId() {
        return userId;
    }

    public String getLoginId() {
        return loginId;
    }
}
