MessageMappingException now extends MessagingException rather than MessageHandlingException, and it provides a constructor that accepts 'description' and 'cause' without a 'failedMessage'. This is necessary to support inbound mapping errors where no 'failedMessage' has been created yet.

This commit is contained in:
Mark Fisher
2008-11-22 16:57:58 +00:00
parent b9435fdc41
commit 2129047231

View File

@@ -17,7 +17,7 @@
package org.springframework.integration.adapter;
import org.springframework.integration.core.Message;
import org.springframework.integration.message.MessageHandlingException;
import org.springframework.integration.core.MessagingException;
/**
* Exception that indicates an error during message mapping.
@@ -25,7 +25,11 @@ import org.springframework.integration.message.MessageHandlingException;
* @author Mark Fisher
*/
@SuppressWarnings("serial")
public class MessageMappingException extends MessageHandlingException {
public class MessageMappingException extends MessagingException {
public MessageMappingException(String description, Throwable cause) {
super(description, cause);
}
public MessageMappingException(Message<?> failedMessage, String description) {
super(failedMessage, description);