View Javadoc

1   /*
2    * $Id: EndpointNotFoundException.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>EndpointNotFoundException</code> is thrown when an endpoint name or
18   * protocol is specified but a matching endpoint is not registered with the Mule
19   * server
20   */
21  
22  public class EndpointNotFoundException extends EndpointException
23  {
24      /**
25       * Serial version
26       */
27      private static final long serialVersionUID = 790450139906970837L;
28  
29      public EndpointNotFoundException(String endpoint)
30      {
31          super(CoreMessages.endpointNotFound(endpoint));
32      }
33  
34      /**
35       * @param message the exception message
36       */
37      public EndpointNotFoundException(Message message)
38      {
39          super(message);
40      }
41  
42      /**
43       * @param message the exception message
44       * @param cause the exception that cause this exception to be thrown
45       */
46      public EndpointNotFoundException(Message message, Throwable cause)
47      {
48          super(message, cause);
49      }
50  
51      public EndpointNotFoundException(Throwable cause)
52      {
53          super(cause);
54      }
55  }