Class EmailSendException
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.EmailSendException
- All Implemented Interfaces:
OpenExceptionMeta, Serializable
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 Summary
ConstructorsConstructorDescriptionEmailSendException(String message) Create send exception with message 使用消息创建发送异常EmailSendException(String message, Email email, EmailErrorCode errorCode) Create send exception with email and error code 使用邮件和错误码创建发送异常EmailSendException(String message, Throwable cause) Create send exception with message and cause 使用消息和原因创建发送异常EmailSendException(String message, Throwable cause, Email email, EmailErrorCode errorCode) Create send exception with all parameters 使用所有参数创建发送异常 -
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, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface OpenExceptionMeta
getMetaPrefix
-
Constructor Details
-
EmailSendException
Create send exception with message 使用消息创建发送异常- Parameters:
message- the error message | 错误消息
-
EmailSendException
-
EmailSendException
Create send exception with all parameters 使用所有参数创建发送异常- Parameters:
message- the error message | 错误消息cause- the cause | 原因email- the related email | 相关邮件errorCode- the error code | 错误码
-
EmailSendException
Create send exception with email and error code 使用邮件和错误码创建发送异常- Parameters:
message- the error message | 错误消息email- the related email | 相关邮件errorCode- the error code | 错误码
-