All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cookingfox.eventbus.testable.SubscriberUncaughtExceptionHandler Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
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