Class EmailSendException

All Implemented Interfaces:
OpenExceptionMeta, Serializable

public class EmailSendException extends EmailException
Email Send Exception 邮件发送异常

Exception thrown when email sending fails.

邮件发送失败时抛出的异常。

Examples | 示例:

  • Connection failed - 连接失败
  • Authentication failed - 认证失败
  • Recipient rejected - 收件人被拒绝
  • Send timeout - 发送超时

Features | 主要功能:

  • Email context preservation - 邮件上下文保留
  • Error code support - 错误码支持
  • Retryable flag - 可重试标志

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

    • EmailSendException

      public EmailSendException(String message)
      Create send exception with message 使用消息创建发送异常
      Parameters:
      message - the error message | 错误消息
    • EmailSendException

      public EmailSendException(String message, Throwable cause)
      Create send exception with message and cause 使用消息和原因创建发送异常
      Parameters:
      message - the error message | 错误消息
      cause - the cause | 原因
    • EmailSendException

      public EmailSendException(String message, Throwable cause, Email email, EmailErrorCode errorCode)
      Create send exception with all parameters 使用所有参数创建发送异常
      Parameters:
      message - the error message | 错误消息
      cause - the cause | 原因
      email - the related email | 相关邮件
      errorCode - the error code | 错误码
    • EmailSendException

      public EmailSendException(String message, Email email, EmailErrorCode errorCode)
      Create send exception with email and error code 使用邮件和错误码创建发送异常
      Parameters:
      message - the error message | 错误消息
      email - the related email | 相关邮件
      errorCode - the error code | 错误码