Class SimpleAsyncUncaughtExceptionHandler
- java.lang.Object
- org.springframework.aop.interceptor.SimpleAsyncUncaughtExceptionHandler
- All Implemented Interfaces:
AsyncUncaughtExceptionHandler
public class SimpleAsyncUncaughtExceptionHandler extends Object implements AsyncUncaughtExceptionHandler
A defaultAsyncUncaughtExceptionHandler
that simply logs the exception.- Since:
- 4.1
- Author:
- Stephane Nicoll, Juergen Hoeller
Constructor Summary
Constructors Constructor Description SimpleAsyncUncaughtExceptionHandler()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleUncaughtException(Throwable ex, Method method, Object... params)
Handle the given uncaught exception thrown from an asynchronous method.
Constructor Detail
SimpleAsyncUncaughtExceptionHandler
public SimpleAsyncUncaughtExceptionHandler()
Method Detail
handleUncaughtException
public void handleUncaughtException(Throwable ex, Method method, Object... params)
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