
org.threadly.util.ExceptionHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of threadly Show documentation
Show all versions of threadly Show documentation
A library of tools to assist with safe concurrent java development. Providing a unique priority based thread pool, and ways to distrbute threaded work.
package org.threadly.util;
/**
* Interface for implementation to handle exceptions which occur. This is similar to
* {@link java.lang.Thread.UncaughtExceptionHandler}, except that exceptions provided to this
* interface are handled on the same thread that threw the exception, and the thread that threw it
* likely WONT die.
*
* @author jent - Mike Jensen
* @since 4.3.0 (since 2.4.0 as ExceptionHandlerInterface)
*/
public interface ExceptionHandler {
/**
* An exception was thrown on this thread, and is now being provided to this handler to handle
* it (possibly just to simply log it occurred).
*
* @param thrown Throwable that was thrown, and caught
*/
public void handleException(Throwable thrown);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy