Class EmailTemplateException

All Implemented Interfaces:
Serializable

public class EmailTemplateException extends EmailException
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 Details

    • EmailTemplateException

      public EmailTemplateException(String message)
      Create template exception with message 使用消息创建模板异常
      Parameters:
      message - the error message | 错误消息
    • EmailTemplateException

      public EmailTemplateException(String message, Throwable cause)
      Create template exception with message and cause 使用消息和原因创建模板异常
      Parameters:
      message - the error message | 错误消息
      cause - the cause | 原因