Interface IEventExceptionHandler

All Known Implementing Classes:
EventBus

public interface IEventExceptionHandler
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handleException(IEventBus bus, Event event, EventListener[] listeners, int index, Throwable throwable)
    Fired when a EventListener throws an exception for the specified event on the event bus.
  • Method Details

    • handleException

      void handleException(IEventBus bus, Event event, EventListener[] listeners, int index, Throwable throwable)
      Fired when a EventListener throws an exception for the specified event on the event bus. After this function returns, the original Throwable will be propagated upwards.
      Parameters:
      bus - The bus the event is being fired on
      event - The event that is being fired
      listeners - All listeners that are listening for this event, in order
      index - Index for the current listener being fired.
      throwable - The throwable being thrown