1 10 11 package org.mule.umo.provider; 12 13 import org.mule.config.i18n.Message; 14 import org.mule.config.i18n.Messages; 15 import org.mule.umo.MessagingException; 16 17 25 26 public class MessageTypeNotSupportedException extends MessagingException 27 { 28 31 private static final long serialVersionUID = -3954838511333933643L; 32 33 public MessageTypeNotSupportedException(Object message, Class adapterClass) 34 { 35 super(new Message(Messages.MESSAGE_X_NOT_SUPPORTED_BY_ADAPTER_X, (message != null 36 ? message.getClass().getName() : "null"), (adapterClass != null 37 ? adapterClass.getName() : "null class")), message); 38 } 39 40 public MessageTypeNotSupportedException(Object message, Class adapterClass, Throwable cause) 41 { 42 super(new Message(Messages.MESSAGE_X_NOT_SUPPORTED_BY_ADAPTER_X, (message != null 43 ? message.getClass().getName() : "null"), (adapterClass != null 44 ? adapterClass.getName() : "null class")), message, cause); 45 } 46 47 } 48 | Popular Tags |