Class EventListenerException

All Implemented Interfaces:
OpenExceptionMeta, Serializable

public class EventListenerException extends EventException
Event Listener Exception 事件监听器异常

Exception thrown when event listener operations fail.

事件监听器操作失败时抛出的异常。

Examples | 示例:

  • Listener invocation failed - 监听器调用失败
  • Invalid listener method signature - 无效的监听器方法签名
  • Listener registration failed - 监听器注册失败

Features | 主要功能:

  • Listener-specific error handling - 监听器特定错误处理
  • Error code categorization - 错误码分类

Security | 安全性:

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

    • EventListenerException

      public EventListenerException(String message)
      Create listener exception with message 使用消息创建监听器异常
      Parameters:
      message - the error message | 错误消息
    • EventListenerException

      public EventListenerException(String message, Throwable cause)
      Create listener exception with message and cause 使用消息和原因创建监听器异常
      Parameters:
      message - the error message | 错误消息
      cause - the cause | 原因
    • EventListenerException

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