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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user