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