Top Description Fields Constructors Methods
com.google.common.eventbus

public Class SubscriberExceptionContext

extends Object
Class Inheritance
Annotations
@ElementTypesAreNonnullByDefault
Static Imports
com.google.common.base.Preconditions.checkNotNull

Context for an exception thrown by a subscriber.
Since
16.0

Field Summary

Modifier and TypeField and Description
private final Object
private final EventBus
private final Object
private final Method

Constructor Summary

AccessConstructor and Description
pack-priv
SubscriberExceptionContext(EventBus
The EventBus that handled the event and the subscriber. Useful for broadcasting a new event based on the error.
eventBus
,
Object
The event object that caused the subscriber to throw.
event
,
Object
The source subscriber context.
subscriber
,
Method
the subscribed method.
subscriberMethod
)

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

The event object that caused the subscriber to throw.
getEvent
()

public EventBus

Returns:

The EventBus that handled the event and the subscriber. Useful for broadcasting a new event based on the error.
getEventBus
()

public Object

Returns:

The object context that the subscriber was called on.
getSubscriber
()

public Method

Returns:

The subscribed method that threw the exception.
getSubscriberMethod
()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

eventback to summary
private final Object event
eventBusback to summary
private final EventBus eventBus
subscriberback to summary
private final Object subscriber
subscriberMethodback to summary
private final Method subscriberMethod

Constructor Detail

SubscriberExceptionContextback to summary
pack-priv SubscriberExceptionContext(EventBus eventBus, Object event, Object subscriber, Method subscriberMethod)
Parameters
eventBus:EventBus

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

event:Object

The event object that caused the subscriber to throw.

subscriber:Object

The source subscriber context.

subscriberMethod:Method

the subscribed method.

Method Detail

getEventback to summary
public Object getEvent()
Returns:Object

The event object that caused the subscriber to throw.

getEventBusback to summary
public EventBus getEventBus()
Returns:EventBus

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

getSubscriberback to summary
public Object getSubscriber()
Returns:Object

The object context that the subscriber was called on.

getSubscriberMethodback to summary
public Method getSubscriberMethod()
Returns:Method

The subscribed method that threw the exception.