Package com.google.common.eventbus
Class SubscriberExceptionContext
- java.lang.Object
- 
- com.google.common.eventbus.SubscriberExceptionContext
 
- 
 public class SubscriberExceptionContext extends java.lang.Object Context for an exception thrown by a subscriber.- Since:
- 16.0
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetEvent()EventBusgetEventBus()java.lang.ObjectgetSubscriber()java.lang.reflect.MethodgetSubscriberMethod()
 
- 
- 
- 
Method Detail- 
getEventBuspublic EventBus getEventBus() - Returns:
- The EventBusthat handled the event and the subscriber. Useful for broadcasting a new event based on the error.
 
 - 
getEventpublic java.lang.Object getEvent() - Returns:
- The event object that caused the subscriber to throw.
 
 - 
getSubscriberpublic java.lang.Object getSubscriber() - Returns:
- The object context that the subscriber was called on.
 
 - 
getSubscriberMethodpublic java.lang.reflect.Method getSubscriberMethod() - Returns:
- The subscribed method that threw the exception.
 
 
- 
 
-