1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.api.transport; |
12 | |
|
13 | |
import org.mule.api.MuleRuntimeException; |
14 | |
import org.mule.config.i18n.CoreMessages; |
15 | |
import org.mule.config.i18n.Message; |
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | |
|
22 | |
|
23 | |
public class UniqueIdNotSupportedException extends MuleRuntimeException |
24 | |
{ |
25 | |
|
26 | |
|
27 | |
|
28 | |
private static final long serialVersionUID = -6719055482076081111L; |
29 | |
|
30 | |
public UniqueIdNotSupportedException(MessageAdapter adapter) |
31 | |
{ |
32 | 0 | super(CoreMessages.uniqueIdNotSupportedByAdapter(adapter.getClass().getName())); |
33 | 0 | } |
34 | |
|
35 | |
public UniqueIdNotSupportedException(MessageAdapter adapter, Message message) |
36 | |
{ |
37 | 0 | super(chainMessage( |
38 | |
CoreMessages.uniqueIdNotSupportedByAdapter(adapter.getClass().getName()), message)); |
39 | 0 | } |
40 | |
|
41 | |
public UniqueIdNotSupportedException(MessageAdapter adapter, Throwable cause) |
42 | |
{ |
43 | 0 | super(CoreMessages.uniqueIdNotSupportedByAdapter(adapter.getClass().getName()), cause); |
44 | 0 | } |
45 | |
|
46 | |
protected static Message chainMessage(Message m1, Message m2) |
47 | |
{ |
48 | 0 | m1.setNextMessage(m2); |
49 | 0 | return m1; |
50 | |
} |
51 | |
} |