com.ekuefler.supereventbus
Class EventBusException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.ekuefler.supereventbus.EventBusException
All Implemented Interfaces:
Serializable

public class EventBusException
extends Exception

An exception created when an event handler (a method annotated with Subscribe) fires an exception during a call to EventBus.post(T). The underlying exception is available as the cause of this exception. This event is not fired by EventBus.post(T), but is passed to any exception handlers registered on the event bus via EventBus.addExceptionHandler(com.ekuefler.supereventbus.ExceptionHandler).

Author:
ekuefler@gmail.com (Erik Kuefler)
See Also:
Serialized Form

Method Summary
 Object getEvent()
          Returns the event passed to EventBus.post(T) that caused the underlying exception to be thrown.
 Object getSource()
          Returns the object containing the Subscribe-annotated method that threw the underlying exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getEvent

public Object getEvent()
Returns the event passed to EventBus.post(T) that caused the underlying exception to be thrown.


getSource

public Object getSource()
Returns the object containing the Subscribe-annotated method that threw the underlying exception.



Copyright © 2013. All Rights Reserved.