1   /*
2    * $Id: DebugExceptionStrategy.java 7963 2007-08-21 08:53:15Z dirk.olmes $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.providers.ftp;
12  
13  import org.mule.impl.AbstractExceptionListener;
14  import org.mule.umo.UMOMessage;
15  import org.mule.umo.endpoint.UMOImmutableEndpoint;
16  
17  import org.apache.commons.logging.Log;
18  import org.apache.commons.logging.LogFactory;
19  
20  public class DebugExceptionStrategy extends AbstractExceptionListener
21  {
22  
23      protected transient Log logger = LogFactory.getLog(getClass());
24  
25      public void handleMessagingException(UMOMessage message, Throwable e)
26      {
27          logger.debug("Ignoring", e);
28      }
29  
30      public void handleRoutingException(UMOMessage message, UMOImmutableEndpoint endpoint, Throwable e)
31      {
32          logger.debug("Ignoring", e);
33      }
34  
35      public void handleLifecycleException(Object component, Throwable e)
36      {
37          logger.debug("Ignoring", e);
38      }
39  
40      public void handleStandardException(Throwable e)
41      {
42          logger.debug("Ignoring", e);
43      }
44  
45  }