01: /*
02: * $Id: NoReceiverForEndpointException.java 10489 2008-01-23 17:53:38Z dfeist $
03: * --------------------------------------------------------------------------------------
04: * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
05: *
06: * The software in this package is published under the terms of the CPAL v1.0
07: * license, a copy of which has been included with this distribution in the
08: * LICENSE.txt file.
09: */
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: * Serial version
25: */
26: private static final long serialVersionUID = -3954838511333933643L;
27:
28: /**
29: * @param endpoint the endpoint that could not be located
30: */
31: public NoReceiverForEndpointException(String endpoint) {
32: super (CoreMessages.endpointNotFound(endpoint));
33: }
34:
35: /**
36: * @param message the exception message
37: */
38: public NoReceiverForEndpointException(Message message) {
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 NoReceiverForEndpointException(Message message,
47: Throwable cause) {
48: super (message, cause);
49: }
50:
51: public NoReceiverForEndpointException(Throwable cause) {
52: super(cause);
53: }
54:
55: }
|