Class EmailSecurityException

All Implemented Interfaces:
OpenExceptionMeta, Serializable

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

    • EmailSecurityException

      public EmailSecurityException(String message)
      Create security exception with message 使用消息创建安全异常
      Parameters:
      message - the error message | 错误消息
    • EmailSecurityException

      public EmailSecurityException(String message, EmailErrorCode errorCode)
      Create security exception with message and error code 使用消息和错误码创建安全异常
      Parameters:
      message - the error message | 错误消息
      errorCode - the error code | 错误码
    • EmailSecurityException

      public EmailSecurityException(String message, Throwable cause)
      Create security exception with message and cause 使用消息和原因创建安全异常
      Parameters:
      message - the error message | 错误消息
      cause - the cause | 原因