Coverage Report - org.mule.api.MuleRuntimeException
 
Classes in this File Line Coverage Branch Coverage Complexity
MuleRuntimeException
0%
0/6
N/A
1
 
 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.api;
 8  
 
 9  
 import org.mule.config.i18n.Message;
 10  
 
 11  
 /**
 12  
  * <code>MuleRuntimeException</code> Is the base runtime exception type for the
 13  
  * Mule Server any other runtimes exceptions thrown by Mule code will use or be based
 14  
  * on this exception. Runtime exceptions in mule are only ever thrown where the
 15  
  * method is not declared to throw an exception and the exception is serious.
 16  
  */
 17  
 public class MuleRuntimeException extends RuntimeException
 18  
 {
 19  
     /**
 20  
      * Serial version
 21  
      */
 22  
     private static final long serialVersionUID = 6728041560892553159L;
 23  
 
 24  
     /**
 25  
      * @param message the exception message
 26  
      */
 27  
     public MuleRuntimeException(Message message)
 28  
     {
 29  0
         super(message.getMessage());
 30  0
     }
 31  
 
 32  
     /**
 33  
      * @param message the exception message
 34  
      * @param cause the exception that triggered this exception
 35  
      */
 36  
     public MuleRuntimeException(Message message, Throwable cause)
 37  
     {
 38  0
         super(message.getMessage(), cause);
 39  0
     }
 40  
 
 41  
     /**
 42  
      * @param cause the exception that triggered this exception
 43  
      */
 44  
     public MuleRuntimeException(Throwable cause)
 45  
     {
 46  0
         super(cause);
 47  0
     }
 48  
 }