Polishing
This commit is contained in:
@@ -19,11 +19,11 @@ package org.springframework.aop.interceptor;
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
/**
|
||||
* A strategy for handling uncaught exception thrown by asynchronous methods.
|
||||
* A strategy for handling uncaught exceptions thrown from asynchronous methods.
|
||||
*
|
||||
* <p>An asynchronous method usually returns a {@link 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 managed such
|
||||
* instance that gives access to the underlying exception. When the method does
|
||||
* not provide that return type, this handler can be used to managed such
|
||||
* uncaught exceptions.
|
||||
*
|
||||
* @author Stephane Nicoll
|
||||
@@ -32,11 +32,11 @@ import java.lang.reflect.Method;
|
||||
public interface AsyncUncaughtExceptionHandler {
|
||||
|
||||
/**
|
||||
* Handle the given uncaught error thrown while processing
|
||||
* an asynchronous method.
|
||||
* @param ex the exception thrown by invoking the async operation
|
||||
* @param method the async operation
|
||||
* Handle the given uncaught exception thrown from an asynchronous method.
|
||||
* @param ex the exception thrown from the asynchronous method
|
||||
* @param method the asynchronous method
|
||||
* @param params the parameters used to invoked the method
|
||||
*/
|
||||
void handleUncaughtException(Throwable ex, Method method, Object... params);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user