Coverage Report - org.mule.umo.endpoint.MalformedEndpointException
 
Classes in this File Line Coverage Branch Coverage Complexity
MalformedEndpointException
25%
2/8
N/A
1
 
 1  
 /*
 2  
  * $Id: MalformedEndpointException.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.umo.endpoint;
 12  
 
 13  
 import org.mule.config.i18n.CoreMessages;
 14  
 import org.mule.config.i18n.Message;
 15  
 
 16  
 /**
 17  
  * <code>MalformedEndpointException</code> is thrown by the MuleEndpointURI class
 18  
  * if it fails to parse a Url
 19  
  * 
 20  
  * @see org.mule.impl.endpoint.MuleEndpointURI
 21  
  */
 22  
 
 23  
 public class MalformedEndpointException extends EndpointException
 24  
 {
 25  
     /**
 26  
      * Serial version
 27  
      */
 28  
     private static final long serialVersionUID = -3179045414716505094L;
 29  
 
 30  
     /**
 31  
      * @param endpoint the endpoint that could not be parsed
 32  
      */
 33  
     public MalformedEndpointException(String endpoint)
 34  
     {
 35  2
         super(CoreMessages.endpointIsMalformed(endpoint));
 36  2
     }
 37  
 
 38  
     /**
 39  
      * @param endpoint the endpoint that could not be parsed
 40  
      */
 41  
     public MalformedEndpointException(Message message, String endpoint)
 42  
     {
 43  0
         super(CoreMessages.endpointIsMalformed(endpoint).setNextMessage(message));
 44  0
     }
 45  
 
 46  
     /**
 47  
      * @param endpoint the endpoint that could not be parsed
 48  
      * @param cause the exception that cause this exception to be thrown
 49  
      */
 50  
     public MalformedEndpointException(String endpoint, Throwable cause)
 51  
     {
 52  0
         super(CoreMessages.endpointIsMalformed(endpoint), cause);
 53  0
     }
 54  
 
 55  
     public MalformedEndpointException(Throwable cause)
 56  
     {
 57  0
         super(cause);
 58  0
     }
 59  
 }