Package com.google.common.eventbus
Class SubscriberExceptionContext
- java.lang.Object
-
- com.google.common.eventbus.SubscriberExceptionContext
-
public class SubscriberExceptionContext extends Object
Context for an exception thrown by a subscriber.- Since:
- 16.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getEvent()
EventBus
getEventBus()
Object
getSubscriber()
Method
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.
-
getSubscriber
public Object getSubscriber()
- Returns:
- The object context that the subscriber was called on.
-
getSubscriberMethod
public Method getSubscriberMethod()
- Returns:
- The subscribed method that threw the exception.
-
-