@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(Throwable ex,
Method method,
Object... params)
Handle the given uncaught exception thrown from an asynchronous method.
|
void handleUncaughtException(Throwable ex, Method method, Object... params)
ex
- the exception thrown from the asynchronous methodmethod
- the asynchronous methodparams
- the parameters used to invoked the method