package com.erp.user.exception.auth;

import lombok.Getter;

/**
 * 认证异常
 */
@Getter
public class AuthException extends RuntimeException {
    
    private final String code;
    
    public AuthException(String message) {
        super(message);
        this.code = "AUTH_ERROR";
    }
    
    public AuthException(String code, String message) {
        super(message);
        this.code = code;
    }
}
