Package com.google.common.eventbus
Class SubscriberExceptionContext
-
- com.google.common.eventbus.SubscriberExceptionContext
-
public class SubscriberExceptionContext extends
Context for an exception thrown by a subscriber.- Since:
- 16.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description getEvent()
EventBus
getEventBus()
getSubscriber()
getSubscriberMethod()
-
-
-
Method Detail
-
getEventBus
public EventBus getEventBus()
- Returns:
- The
EventBus
that handled the event and the subscriber. Useful for broadcasting a a new event based on the error.
-
getEvent
public getEvent()
- Returns:
- The event object that caused the subscriber to throw.
-
getSubscriber
public getSubscriber()
- Returns:
- The object context that the subscriber was called on.
-
getSubscriberMethod
public getSubscriberMethod()
- Returns:
- The subscribed method that threw the exception.
-
-