Coverage Report - org.mule.api.DefaultMuleException
 
Classes in this File Line Coverage Branch Coverage Complexity
DefaultMuleException
0%
0/10
N/A
1
 
 1  
 /*
 2  
  * $Id: DefaultMuleException.java 19191 2010-08-25 21:05:23Z tcarlson $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.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.api;
 12  
 
 13  
 import org.mule.config.i18n.Message;
 14  
 import org.mule.config.i18n.MessageFactory;
 15  
 
 16  
 /**
 17  
  * <code>MuleException</code> Is the base exception type for the Mule application
 18  
  * any other exceptions thrown by Mule code will be based on this exception.
 19  
  */
 20  
 public class DefaultMuleException extends MuleException
 21  
 {
 22  
     /**
 23  
      * Serial version
 24  
      */
 25  
     private static final long serialVersionUID = 2554735072826262515L;
 26  
 
 27  
     public DefaultMuleException(String message)
 28  
     {
 29  0
         this(MessageFactory.createStaticMessage(message));
 30  0
     }
 31  
 
 32  
     /**
 33  
      * @param message the exception message
 34  
      */
 35  
     public DefaultMuleException(Message message)
 36  
     {
 37  0
         super(message);
 38  0
     }
 39  
 
 40  
     public DefaultMuleException(String message, Throwable cause)
 41  
     {
 42  0
         this(MessageFactory.createStaticMessage(message), cause);
 43  0
     }
 44  
 
 45  
     /**
 46  
      * @param message the exception message
 47  
      * @param cause the exception that cause this exception to be thrown
 48  
      */
 49  
     public DefaultMuleException(Message message, Throwable cause)
 50  
     {
 51  0
         super(message, cause);
 52  0
     }
 53  
 
 54  
     public DefaultMuleException(Throwable cause)
 55  
     {
 56  0
         super(cause);
 57  0
     }
 58  
 }