@FunctionalInterface
public interface AsyncUncaughtExceptionHandler
An asynchronous method usually returns a Future
instance that gives access to the underlying exception. When the method does
not provide that return type, this handler can be used to manage such
uncaught exceptions.
Modifier and Type | Method and Description |
---|---|
void |
handleUncaughtException(java.lang.Throwable ex,
java.lang.reflect.Method method,
java.lang.Object... params)
Handle the given uncaught exception thrown from an asynchronous method.
|
void handleUncaughtException(java.lang.Throwable ex, java.lang.reflect.Method method, java.lang.Object... params)
ex
- the exception thrown from the asynchronous methodmethod
- the asynchronous methodparams
- the parameters used to invoked the method