Class EventSecurityException

All Implemented Interfaces:
Serializable

public class EventSecurityException extends EventException
Event Security Exception 事件安全异常

Exception thrown for security-related event errors.

安全相关事件错误时抛出的异常。

Examples | 示例:

  • Event signature verification failed - 事件签名验证失败
  • Rate limit exceeded - 频率限制超出
  • Unauthorized listener registration - 未授权的监听器注册

Features | 主要功能:

  • Security violation reporting - 安全违规报告
  • Rate limit and verification errors - 频率限制和验证错误

Security | 安全性:

  • Thread-safe: Yes (stateless) - 线程安全: 是(无状态)
Since:
JDK 25, opencode-base-event V1.0.0
Author:
Leon Soo www.LeonSoo.com
See Also:
  • Constructor Details

    • EventSecurityException

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

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

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

      public EventSecurityException(String message, Throwable cause, Event event, EventErrorCode errorCode)
      Create security exception with all parameters 使用所有参数创建安全异常
      Parameters:
      message - the error message | 错误消息
      cause - the cause | 原因
      event - the related event | 相关事件
      errorCode - the error code | 错误码