com.ekuefler.supereventbus
Class EventBusException
java.lang.Object
java.lang.Throwable
java.lang.Exception
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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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.