No longer wrapping exceptions that are already MessageTransformationExceptions.

This commit is contained in:
Mark Fisher
2009-02-27 17:44:44 +00:00
parent dfade35f7a
commit f3c95795d3

View File

@@ -33,6 +33,9 @@ public abstract class AbstractPayloadTransformer<T, U> implements Transformer {
U result = this.transformPayload((T) message.getPayload());
return MessageBuilder.withPayload(result).copyHeaders(message.getHeaders()).build();
}
catch (MessageTransformationException e) {
throw e;
}
catch (Exception e) {
throw new MessageTransformationException(message, "failed to transform message payload", e);
}