1
2
3
4
5
6
7 package org.mule.module.xml.functional;
8
9 import org.mule.api.MuleEvent;
10 import org.mule.api.exception.MessagingExceptionHandler;
11 import org.mule.routing.filters.WildcardFilter;
12
13 import org.apache.commons.logging.Log;
14 import org.apache.commons.logging.LogFactory;
15
16 public class HideExceptions implements MessagingExceptionHandler
17 {
18 protected transient Log logger = LogFactory.getLog(getClass());
19
20 public MuleEvent handleException(Exception exception, MuleEvent event)
21 {
22 logger.debug("Hiding exception: " + exception);
23 logger.debug("(see config for test - some exceptions expected)");
24 return null;
25 }
26
27 public WildcardFilter getCommitTxFilter()
28 {
29 return null;
30 }
31
32 public WildcardFilter getRollbackTxFilter()
33 {
34 return null;
35 }
36 }
37