Class EmailConfigException

All Implemented Interfaces:
Serializable

public class EmailConfigException extends EmailException
Email Configuration Exception 邮件配置异常

Exception thrown when email configuration is invalid.

邮件配置无效时抛出的异常。

Examples | 示例:

  • Invalid SMTP host - 无效的SMTP主机
  • Missing credentials - 缺少凭证
  • Invalid port number - 无效的端口号

Features | 主要功能:

  • Configuration validation 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

    • EmailConfigException

      public EmailConfigException(String message)
      Create configuration exception with message 使用消息创建配置异常
      Parameters:
      message - the error message | 错误消息
    • EmailConfigException

      public EmailConfigException(String message, Throwable cause)
      Create configuration exception with message and cause 使用消息和原因创建配置异常
      Parameters:
      message - the error message | 错误消息
      cause - the cause | 原因