Class SimpleAsyncUncaughtExceptionHandler
java.lang.Object
org.springframework.aop.interceptor.SimpleAsyncUncaughtExceptionHandler
- All Implemented Interfaces:
AsyncUncaughtExceptionHandler
public class SimpleAsyncUncaughtExceptionHandler
extends Object
implements AsyncUncaughtExceptionHandler
A default
AsyncUncaughtExceptionHandler
that simply logs the exception.- Since:
- 4.1
- Author:
- Stephane Nicoll, Juergen Hoeller
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleUncaughtException
(Throwable ex, Method method, Object... params) Handle the given uncaught exception thrown from an asynchronous method.
-
Constructor Details
-
SimpleAsyncUncaughtExceptionHandler
public SimpleAsyncUncaughtExceptionHandler()
-
-
Method Details
-
handleUncaughtException
Description copied from interface:AsyncUncaughtExceptionHandler
Handle the given uncaught exception thrown from an asynchronous method.- Specified by:
handleUncaughtException
in interfaceAsyncUncaughtExceptionHandler
- Parameters:
ex
- the exception thrown from the asynchronous methodmethod
- the asynchronous methodparams
- the parameters used to invoked the method
-