package com.gnx.telemedicine.exception;

/**
 * Exception thrown when 2FA is enabled but no code was provided during login.
 * This is not an error condition, but rather indicates that the user needs to provide their 2FA code.
 */
public class TwoFactorAuthenticationRequiredException extends RuntimeException {
    public TwoFactorAuthenticationRequiredException(String message) {
        super(message);
    }
    
    public TwoFactorAuthenticationRequiredException() {
        super("2FA code required");
    }
}

