- All Known Implementing Classes:
EventBus
public interface IEventExceptionHandler
Handler for exceptions occurred in event listeners.
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandleException(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 onevent- The event that is being firedlisteners- All listeners that are listening for this event, in orderindex- Index for the current listener being fired.throwable- The throwable being thrown
-