View Javadoc

1   /*
2    * $Id: NoReceiverForEndpointException.java 10489 2008-01-23 17:53:38Z dfeist $
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.api.transport;
12  
13  import org.mule.api.endpoint.EndpointException;
14  import org.mule.config.i18n.CoreMessages;
15  import org.mule.config.i18n.Message;
16  
17  /**
18   * <code>NoReceiverForEndpointException</code> is thrown when an enpoint is
19   * specified for a receiver but no such receiver exists.
20   */
21  
22  public class NoReceiverForEndpointException extends EndpointException
23  {
24      /**
25       * Serial version
26       */
27      private static final long serialVersionUID = -3954838511333933643L;
28  
29      /**
30       * @param endpoint the endpoint that could not be located
31       */
32      public NoReceiverForEndpointException(String endpoint)
33      {
34          super(CoreMessages.endpointNotFound(endpoint));
35      }
36  
37      /**
38       * @param message the exception message
39       */
40      public NoReceiverForEndpointException(Message message)
41      {
42          super(message);
43      }
44  
45      /**
46       * @param message the exception message
47       * @param cause the exception that cause this exception to be thrown
48       */
49      public NoReceiverForEndpointException(Message message, Throwable cause)
50      {
51          super(message, cause);
52      }
53  
54      public NoReceiverForEndpointException(Throwable cause)
55      {
56          super(cause);
57      }
58  
59  }