
com.cookingfox.eventbus.testable.SubscriberUncaughtExceptionHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eventbus-adapter-java Show documentation
Show all versions of eventbus-adapter-java Show documentation
The EventBus Adapter wraps various EventBus implementations for Java and Android.
package com.cookingfox.eventbus.testable;
/**
* Handle uncaught exceptions in subscribers.
* NOTE: It is bad practice to have your event subscribers throw exceptions - they should be handled
* right inside the method.
*
* @see TestableEventBus#setSubscriberUncaughtExceptionHandler(SubscriberUncaughtExceptionHandler)
*/
public interface SubscriberUncaughtExceptionHandler {
/**
* Handle the uncaught subscriber exception.
*/
void handle(Exception e);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy