Class CaptchaNotFoundException

All Implemented Interfaces:
OpenExceptionMeta, Serializable

public class CaptchaNotFoundException extends CaptchaException
Captcha Not Found Exception - Thrown when CAPTCHA is not found 验证码未找到异常 - 当验证码未找到时抛出

Features | 主要功能:

  • Carries the not-found CAPTCHA ID - 携带未找到的验证码 ID
  • Extends CaptchaException - 继承 CaptchaException

Usage Examples | 使用示例:

throw new CaptchaNotFoundException(captchaId);
throw new CaptchaNotFoundException("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

    • CaptchaNotFoundException

      public CaptchaNotFoundException(String captchaId)
      Constructs a new exception with the captcha ID. 使用验证码 ID 构造新异常。
      Parameters:
      captchaId - the not found CAPTCHA ID | 未找到的验证码 ID
    • CaptchaNotFoundException

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

    • getCaptchaId

      public String getCaptchaId()
      Gets the not found CAPTCHA ID. 获取未找到的验证码 ID。
      Returns:
      the captcha ID | 验证码 ID