Class CaptchaExpiredException

All Implemented Interfaces:
Serializable

public class CaptchaExpiredException extends CaptchaException
Captcha Expired Exception - Thrown when CAPTCHA has expired 验证码过期异常 - 当验证码过期时抛出

Features | 主要功能:

  • Carries the expired CAPTCHA ID - 携带过期的验证码 ID
  • Extends CaptchaException - 继承 CaptchaException

Usage Examples | 使用示例:

throw new CaptchaExpiredException(captchaId);
throw new CaptchaExpiredException("Custom message", captchaId);

Security | 安全性:

  • Thread-safe: Yes (immutable after construction) - 线程安全: 是(构造后不可变)
  • Null-safe: No (captchaId may be null) - 空值安全: 否(captchaId 可能为空)
Since:
JDK 25, opencode-base-captcha V1.0.0
Author:
Leon Soo www.LeonSoo.com
See Also:
  • Constructor Details

    • CaptchaExpiredException

      public CaptchaExpiredException(String captchaId)
      Constructs a new exception with the captcha ID. 使用验证码 ID 构造新异常。
      Parameters:
      captchaId - the expired CAPTCHA ID | 过期的验证码 ID
    • CaptchaExpiredException

      public CaptchaExpiredException(String message, String captchaId)
      Constructs a new exception with message and captcha ID. 使用消息和验证码 ID 构造新异常。
      Parameters:
      message - the detail message | 详细消息
      captchaId - the expired CAPTCHA ID | 过期的验证码 ID
  • Method Details

    • getCaptchaId

      public String getCaptchaId()
      Gets the expired CAPTCHA ID. 获取过期的验证码 ID。
      Returns:
      the captcha ID | 验证码 ID