Class EmailTemplateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cloud.opencode.base.core.exception.OpenException
cloud.opencode.base.email.exception.EmailException
cloud.opencode.base.email.exception.EmailTemplateException
- All Implemented Interfaces:
Serializable
Email Template Exception
邮件模板异常
Exception thrown when template rendering fails.
模板渲染失败时抛出的异常。
Examples | 示例:
- Template not found - 模板未找到
- Invalid template syntax - 无效的模板语法
- Missing required variable - 缺少必需变量
Features | 主要功能:
- Template rendering error handling - 模板渲染错误处理
- Error code support - 错误码支持
Security | 安全性:
- Thread-safe: Yes (immutable after construction) - 线程安全: 是(构造后不可变)
- Since:
- JDK 25, opencode-base-email V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEmailTemplateException(String message) Create template exception with message 使用消息创建模板异常EmailTemplateException(String message, Throwable cause) Create template exception with message and cause 使用消息和原因创建模板异常 -
Method Summary
Methods inherited from class EmailException
getEmail, getEmailErrorCode, isRetryableMethods 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
-
EmailTemplateException
Create template exception with message 使用消息创建模板异常- Parameters:
message- the error message | 错误消息
-
EmailTemplateException
-