Coverage Report - org.mule.example.errorhandler.handlers.DefaultHandler
 
Classes in this File Line Coverage Branch Coverage Complexity
DefaultHandler
50%
3/6
N/A
1
 
 1  
 /*
 2  
  * $Id: DefaultHandler.java 10789 2008-02-12 20:04:43Z dfeist $
 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.example.errorhandler.handlers;
 12  
 
 13  
 import org.mule.example.errorhandler.AbstractExceptionHandler;
 14  
 import org.mule.example.errorhandler.ErrorMessage;
 15  
 import org.mule.example.errorhandler.HandlerException;
 16  
 import org.mule.example.errorhandler.LocaleMessage;
 17  
 import org.mule.util.StringMessageUtils;
 18  
 
 19  
 /**
 20  
  * <code>DefaultHandler</code> TODO (document class)
 21  
  *
 22  
  */
 23  
 public class DefaultHandler extends AbstractExceptionHandler
 24  
 {
 25  
 
 26  
     public DefaultHandler()
 27  
     {
 28  6
         super();
 29  6
         registerException(Throwable.class);
 30  6
     }
 31  
 
 32  
     public void processException(ErrorMessage message, Throwable t) throws HandlerException
 33  
     {
 34  0
         String msg = LocaleMessage.defaultHandlerMessage();
 35  0
         System.out.println(StringMessageUtils.getBoilerPlate(msg));
 36  0
     }
 37  
 
 38  
 }