Class CaptchaExpiredException
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.CaptchaExpiredException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionCaptchaExpiredException(String captchaId) Constructs a new exception with the captcha ID.CaptchaExpiredException(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
-
CaptchaExpiredException
Constructs a new exception with the captcha ID. 使用验证码 ID 构造新异常。- Parameters:
captchaId- the expired CAPTCHA ID | 过期的验证码 ID
-
CaptchaExpiredException
-
-
Method Details
-
getCaptchaId
Gets the expired CAPTCHA ID. 获取过期的验证码 ID。- Returns:
- the captcha ID | 验证码 ID
-