Coverage Report - org.mule.tck.functional.QuietExceptionStrategy
 
Classes in this File Line Coverage Branch Coverage Complexity
QuietExceptionStrategy
0%
0/6
N/A
0
 
 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.tck.functional;
 8  
 
 9  
 import org.mule.api.MuleEvent;
 10  
 import org.mule.exception.AbstractMessagingExceptionStrategy;
 11  
 
 12  
 import org.apache.commons.logging.Log;
 13  
 import org.apache.commons.logging.LogFactory;
 14  
 
 15  
 /**
 16  
  * Restrict exceptions to debug log messages
 17  
  */
 18  0
 public class QuietExceptionStrategy extends AbstractMessagingExceptionStrategy
 19  
 {
 20  0
     protected transient Log logger = LogFactory.getLog(getClass());
 21  
 
 22  
     @Override
 23  
     protected void doHandleException(Exception e, MuleEvent event)
 24  
     {
 25  0
         logger.debug("Ignoring", e);
 26  0
     }
 27  
 
 28  
     @Override
 29  
     protected void logException(Throwable t)
 30  
     {
 31  0
         logger.debug("Ignoring", t);
 32  0
     }
 33  
 }