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 Details

    • getEventBus

      Returns:
      The EventBus that handled the event and the subscriber. Useful for broadcasting a new event based on the error.
    • getEvent

      public Object getEvent()
      Returns:
      The event object that caused the subscriber to throw.
    • getSubscriber

      Returns:
      The object context that the subscriber was called on.
    • getSubscriberMethod

      Returns:
      The subscribed method that threw the exception.