Class CaptchaNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cloud.opencode.base.core.exception.OpenException
cloud.opencode.base.captcha.exception.CaptchaException
cloud.opencode.base.captcha.exception.CaptchaNotFoundException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionCaptchaNotFoundException(String captchaId) Constructs a new exception with the captcha ID.CaptchaNotFoundException(String message, String captchaId) Constructs a new exception with message and captcha ID. -
Method Summary
Methods inherited from class OpenException
getComponent, getErrorCode, getMessage, getRawMessageMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CaptchaNotFoundException
Constructs a new exception with the captcha ID. 使用验证码 ID 构造新异常。- Parameters:
captchaId- the not found CAPTCHA ID | 未找到的验证码 ID
-
CaptchaNotFoundException
-
-
Method Details
-
getCaptchaId
Gets the not found CAPTCHA ID. 获取未找到的验证码 ID。- Returns:
- the captcha ID | 验证码 ID
-