Class EmailSecurityException
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.EmailSecurityException
- All Implemented Interfaces:
OpenExceptionMeta, Serializable
Email Security Exception
邮件安全异常
Exception thrown for security-related email errors.
安全相关邮件错误时抛出的异常。
Examples | 示例:
- Header injection attack - 邮件头注入攻击
- Invalid attachment type - 无效的附件类型
- Attachment size exceeded - 附件大小超限
Features | 主要功能:
- Header injection detection - 邮件头注入检测
- Attachment security validation - 附件安全验证
- Error code support - 错误码支持
- Since:
- JDK 25, opencode-base-email V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEmailSecurityException(String message) Create security exception with message 使用消息创建安全异常EmailSecurityException(String message, EmailErrorCode errorCode) Create security exception with message and error code 使用消息和错误码创建安全异常EmailSecurityException(String message, Throwable cause) Create security 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, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface OpenExceptionMeta
getMetaPrefix
-
Constructor Details
-
EmailSecurityException
Create security exception with message 使用消息创建安全异常- Parameters:
message- the error message | 错误消息
-
EmailSecurityException
Create security exception with message and error code 使用消息和错误码创建安全异常- Parameters:
message- the error message | 错误消息errorCode- the error code | 错误码
-
EmailSecurityException
-