AbstractPayloadTransformer now throws MessageTransformationException instead of the more generic MessagingException.

This commit is contained in:
Mark Fisher
2008-12-12 20:20:22 +00:00
parent 65a2405104
commit 7c6ac19325

View File

@@ -17,7 +17,6 @@
package org.springframework.integration.transformer;
import org.springframework.integration.core.Message;
import org.springframework.integration.core.MessagingException;
import org.springframework.integration.message.MessageBuilder;
/**
@@ -35,7 +34,7 @@ public abstract class AbstractPayloadTransformer<T, U> implements Transformer {
return MessageBuilder.withPayload(result).copyHeaders(message.getHeaders()).build();
}
catch (Exception e) {
throw new MessagingException(message, "failed to transform message payload", e);
throw new MessageTransformationException(message, "failed to transform message payload", e);
}
}