Top Description Methods
org.springframework.aop.interceptor

public Interface AsyncUncaughtExceptionHandler

Known Direct Implementers
org.springframework.aop.interceptor.SimpleAsyncUncaughtExceptionHandler
Annotations
@FunctionalInterface
Imports
java.lang.reflect.Method

A strategy for handling uncaught exceptions thrown from asynchronous methods.

An asynchronous method usually returns a java.util.concurrent.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.

Author
Stephane Nicoll
Since
4.1

Method Summary

Modifier and TypeMethod and Description
public void
handleUncaughtException(Throwable
the exception thrown from the asynchronous method
ex
,
Method
the asynchronous method
method
,
Object...
the parameters used to invoke the method
params
)

Handle the given uncaught exception thrown from an asynchronous method.

Method Detail

handleUncaughtExceptionback to summary
public void handleUncaughtException(Throwable ex, Method method, Object... params)

Handle the given uncaught exception thrown from an asynchronous method.

Parameters
ex:Throwable

the exception thrown from the asynchronous method

method:Method

the asynchronous method

params:Object[]

the parameters used to invoke the method