Class EventPublishException
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.EventPublishException
- All Implemented Interfaces:
Serializable
Event Publish Exception
事件发布异常
Exception thrown when event publishing fails.
事件发布失败时抛出的异常。
Examples | 示例:
- Event cancelled during processing - 处理过程中事件被取消
- Publish timeout - 发布超时
- No listeners available - 没有可用监听器
Features | 主要功能:
- Publish-specific error handling - 发布特定错误处理
- Timeout and cancellation errors - 超时和取消错误
Security | 安全性:
- Thread-safe: Yes (stateless) - 线程安全: 是(无状态)
- Since:
- JDK 25, opencode-base-event V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEventPublishException(String message) Create publish exception with message 使用消息创建发布异常EventPublishException(String message, Throwable cause) Create publish exception with message and cause 使用消息和原因创建发布异常EventPublishException(String message, Throwable cause, Event event, EventErrorCode errorCode) Create publish 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
-
EventPublishException
Create publish exception with message 使用消息创建发布异常- Parameters:
message- the error message | 错误消息
-
EventPublishException
-
EventPublishException
public EventPublishException(String message, Throwable cause, Event event, EventErrorCode errorCode) Create publish exception with all parameters 使用所有参数创建发布异常- Parameters:
message- the error message | 错误消息cause- the cause | 原因event- the related event | 相关事件errorCode- the error code | 错误码
-