1
|
package eu.dnetlib.parthenos;
|
2
|
|
3
|
import java.lang.reflect.Method;
|
4
|
|
5
|
import org.apache.commons.logging.Log;
|
6
|
import org.apache.commons.logging.LogFactory;
|
7
|
import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler;
|
8
|
|
9
|
/**
|
10
|
* Created by Alessia Bardi on 17/10/2017.
|
11
|
*
|
12
|
* @author Alessia Bardi
|
13
|
*/
|
14
|
|
15
|
public class ParthenosAsyncUncaughtExceptionHandler implements AsyncUncaughtExceptionHandler {
|
16
|
|
17
|
private static final Log log = LogFactory.getLog(ParthenosAsyncUncaughtExceptionHandler.class);
|
18
|
|
19
|
@Override
|
20
|
public void handleUncaughtException(final Throwable throwable, final Method method, final Object... objects) {
|
21
|
log.error("Method Name::"+method.getName());
|
22
|
log.error("Exception occurred::"+ throwable);
|
23
|
}
|
24
|
}
|