Class CaptchaGenerationException
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.CaptchaGenerationException
- All Implemented Interfaces:
OpenExceptionMeta, Serializable
Captcha Generation Exception - Thrown when CAPTCHA generation fails
验证码生成异常 - 当验证码生成失败时抛出
Features | 主要功能:
- Carries the CAPTCHA type that failed to generate - 携带生成失败的验证码类型
- Extends CaptchaException - 继承 CaptchaException
Usage Examples | 使用示例:
throw new CaptchaGenerationException("Failed to render image");
throw new CaptchaGenerationException("Failed", CaptchaType.GIF, cause);
Security | 安全性:
- Thread-safe: Yes (immutable after construction) - 线程安全: 是(构造后不可变)
- Null-safe: No (type may be null) - 空值安全: 否(类型可能为空)
- Since:
- JDK 25, opencode-base-captcha V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCaptchaGenerationException(String message) Constructs a new exception with the specified message.CaptchaGenerationException(String message, CaptchaType type) Constructs a new exception with message and CAPTCHA type.CaptchaGenerationException(String message, CaptchaType type, Throwable cause) Constructs a new exception with message, type and cause.CaptchaGenerationException(String message, Throwable cause) Constructs a new exception with message and cause. -
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, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface OpenExceptionMeta
getMetaPrefix
-
Constructor Details
-
CaptchaGenerationException
Constructs a new exception with the specified message. 使用指定消息构造新异常。- Parameters:
message- the detail message | 详细消息
-
CaptchaGenerationException
Constructs a new exception with message and CAPTCHA type. 使用消息和验证码类型构造新异常。- Parameters:
message- the detail message | 详细消息type- the CAPTCHA type | 验证码类型
-
CaptchaGenerationException
-
CaptchaGenerationException
Constructs a new exception with message, type and cause. 使用消息、类型和原因构造新异常。- Parameters:
message- the detail message | 详细消息type- the CAPTCHA type | 验证码类型cause- the cause | 原因
-
-
Method Details
-
getType
-