View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
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