1
2
3
4
5
6
7
8
9
10
11 package org.mule.transport.sftp.notification;
12
13 import org.mule.api.exception.RollbackSourceCallback;
14 import org.mule.api.exception.SystemExceptionHandler;
15
16 import org.slf4j.Logger;
17 import org.slf4j.LoggerFactory;
18
19 public class ExceptionListener implements SystemExceptionHandler
20 {
21 private static final Logger logger = LoggerFactory.getLogger(ExceptionListener.class);
22
23 public void handleException(Exception e)
24 {
25 logger.debug(e.getLocalizedMessage());
26 }
27
28 public void handleException(Exception exception, RollbackSourceCallback rollbackMethod)
29 {
30 handleException(exception);
31 }
32 }