Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
NoReceiverForEndpointException |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com | |
3 | * The software in this package is published under the terms of the CPAL v1.0 | |
4 | * license, a copy of which has been included with this distribution in the | |
5 | * LICENSE.txt file. | |
6 | */ | |
7 | package org.mule.api.transport; | |
8 | ||
9 | import org.mule.api.endpoint.EndpointException; | |
10 | import org.mule.config.i18n.CoreMessages; | |
11 | import org.mule.config.i18n.Message; | |
12 | ||
13 | /** | |
14 | * <code>NoReceiverForEndpointException</code> is thrown when an enpoint is | |
15 | * specified for a receiver but no such receiver exists. | |
16 | */ | |
17 | ||
18 | public class NoReceiverForEndpointException extends EndpointException | |
19 | { | |
20 | /** | |
21 | * Serial version | |
22 | */ | |
23 | private static final long serialVersionUID = -3954838511333933643L; | |
24 | ||
25 | /** | |
26 | * @param endpoint the endpoint that could not be located | |
27 | */ | |
28 | public NoReceiverForEndpointException(String endpoint) | |
29 | { | |
30 | 0 | super(CoreMessages.endpointNotFound(endpoint)); |
31 | 0 | } |
32 | ||
33 | /** | |
34 | * @param message the exception message | |
35 | */ | |
36 | public NoReceiverForEndpointException(Message message) | |
37 | { | |
38 | 0 | super(message); |
39 | 0 | } |
40 | ||
41 | /** | |
42 | * @param message the exception message | |
43 | * @param cause the exception that cause this exception to be thrown | |
44 | */ | |
45 | public NoReceiverForEndpointException(Message message, Throwable cause) | |
46 | { | |
47 | 0 | super(message, cause); |
48 | 0 | } |
49 | ||
50 | public NoReceiverForEndpointException(Throwable cause) | |
51 | { | |
52 | 0 | super(cause); |
53 | 0 | } |
54 | ||
55 | } |