Class EventPublishException

All Implemented Interfaces:
Serializable

public class EventPublishException extends EventException
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 Details

    • EventPublishException

      public EventPublishException(String message)
      Create publish exception with message 使用消息创建发布异常
      Parameters:
      message - the error message | 错误消息
    • EventPublishException

      public EventPublishException(String message, Throwable cause)
      Create publish exception with message and cause 使用消息和原因创建发布异常
      Parameters:
      message - the error message | 错误消息
      cause - the cause | 原因
    • 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 | 错误码