com.ekuefler.supereventbus
Interface ExceptionHandler


public interface ExceptionHandler

Marks an object as capable of handling exceptions thrown while dispatching events posted on the event bus. After all handlers have had a chance to handle an event, any exceptions thrown by handlers are collected, wrapped in an EventBusException, and passed in turn to all registered exception handlers.

Author:
ekuefler@gmail.com (Erik Kuefler)

Method Summary
 void handleException(EventBusException e)
          Invoked whenever an exception occurs while handling an event, after all handlers have had a chance to handle the event.
 

Method Detail

handleException

void handleException(EventBusException e)
Invoked whenever an exception occurs while handling an event, after all handlers have had a chance to handle the event. The underlying exception will be wrapped in an EventBusException, which provides access to the handler and event for which the exception occurred. If multiple exceptions occurred while dispatching an event, this method will be invoked multiple times.

Parameters:
e - a wrapper around the exception that occurred during event dispatch


Copyright © 2013. All Rights Reserved.