1 10 11 package org.mule.umo.provider; 12 13 import org.mule.MuleRuntimeException; 14 import org.mule.config.i18n.Message; 15 import org.mule.config.i18n.Messages; 16 17 25 26 public class UniqueIdNotSupportedException extends MuleRuntimeException 27 { 28 31 private static final long serialVersionUID = -6719055482076081111L; 32 33 public UniqueIdNotSupportedException(UMOMessageAdapter adapter) 34 { 35 super(new Message(Messages.UNIQUE_ID_NOT_SUPPORTED_BY_ADAPTER_X, adapter.getClass().getName())); 36 } 37 38 public UniqueIdNotSupportedException(UMOMessageAdapter adapter, Message message) 39 { 40 super(chainMessage(new Message(Messages.UNIQUE_ID_NOT_SUPPORTED_BY_ADAPTER_X, adapter.getClass() 41 .getName()), message)); 42 } 43 44 public UniqueIdNotSupportedException(UMOMessageAdapter adapter, Throwable cause) 45 { 46 super(new Message(Messages.UNIQUE_ID_NOT_SUPPORTED_BY_ADAPTER_X, adapter.getClass().getName()), cause); 47 } 48 49 protected static Message chainMessage(Message m1, Message m2) 50 { 51 m1.setNextMessage(m2); 52 return m1; 53 } 54 } 55 | Popular Tags |