Class EventListenerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cloud.opencode.base.core.exception.OpenException
cloud.opencode.base.event.exception.EventException
cloud.opencode.base.event.exception.EventListenerException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionEventListenerException(String message) Create listener exception with message 使用消息创建监听器异常EventListenerException(String message, Throwable cause) Create listener exception with message and cause 使用消息和原因创建监听器异常EventListenerException(String message, Throwable cause, Event event, EventErrorCode errorCode) Create listener exception with all parameters 使用所有参数创建监听器异常 -
Method Summary
Methods inherited from class EventException
getEvent, getEventErrorCodeMethods inherited from class OpenException
getComponent, getErrorCode, getMessage, getRawMessageMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EventListenerException
Create listener exception with message 使用消息创建监听器异常- Parameters:
message- the error message | 错误消息
-
EventListenerException
-
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 | 错误码
-