package com.qqchen.deploy.backend.framework.exception;

import com.qqchen.deploy.backend.framework.enums.ResponseCode;

/**
 * JWT认证异常
 */
public class JwtAuthenticationException extends BusinessException {
    
    public JwtAuthenticationException(ResponseCode errorCode) {
        super(errorCode);
    }

    public JwtAuthenticationException(ResponseCode errorCode, Object[] args) {
        super(errorCode, args);
    }

    public static JwtAuthenticationException expired() {
        return new JwtAuthenticationException(ResponseCode.JWT_EXPIRED);
    }

    public static JwtAuthenticationException invalid() {
        return new JwtAuthenticationException(ResponseCode.JWT_INVALID);
    }

    public static JwtAuthenticationException missing() {
        return new JwtAuthenticationException(ResponseCode.JWT_MISSING);
    }
} 