KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > umo > endpoint > MalformedEndpointException


1 /*
2  * $Id: MalformedEndpointException.java 3798 2006-11-04 04:07:14Z aperepel $
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 MuleSource MPL
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.Message;
14 import org.mule.config.i18n.Messages;
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  * @author <a HREF="mailto:ross.mason@symphonysoft.com">Ross Mason</a>
22  * @version $Revision: 3798 $
23  */

24
25 public class MalformedEndpointException extends EndpointException
26 {
27     /**
28      * Serial version
29      */

30     private static final long serialVersionUID = -3179045414716505094L;
31
32     /**
33      * @param endpoint the endpoint that could not be parsed
34      */

35     public MalformedEndpointException(String JavaDoc endpoint)
36     {
37         super(new Message(Messages.ENPOINT_X_IS_MALFORMED, endpoint));
38     }
39
40     /**
41      * @param endpoint the endpoint that could not be parsed
42      */

43     public MalformedEndpointException(Message message, String JavaDoc endpoint)
44     {
45         super(new Message(Messages.ENPOINT_X_IS_MALFORMED, endpoint).setNextMessage(message));
46     }
47
48     /**
49      * @param endpoint the endpoint that could not be parsed
50      * @param cause the exception that cause this exception to be thrown
51      */

52     public MalformedEndpointException(String JavaDoc endpoint, Throwable JavaDoc cause)
53     {
54         super(new Message(Messages.ENPOINT_X_IS_MALFORMED, endpoint), cause);
55     }
56
57     public MalformedEndpointException(Throwable JavaDoc cause)
58     {
59         super(cause);
60     }
61 }
62
Popular Tags