INT-3271 Revert MessageHandlingException Ctor Use

When `MHE` was moved to spring-messaging, 2 constructors were
dropped. INT-3246 worked around it but it had undesirable
side-effects. Constructors have been added back in
spring-messaging so this commit reverts to using those
constructors.

JIRA: https://jira.springsource.org/browse/INT-3271
This commit is contained in:
Gary Russell
2014-01-22 16:24:07 -05:00
committed by Artem Bilan
parent 1eefab9339
commit 5cb9f05a40
10 changed files with 29 additions and 27 deletions

View File

@@ -99,7 +99,7 @@ public class XmlValidatingMessageSelector implements MessageSelector {
validationExceptions = this.xmlValidator.validate(this.converter.convertToSource(message.getPayload()));
}
catch (Exception e) {
throw new MessageHandlingException(message, "XML validation error.", e);
throw new MessageHandlingException(message, e);
}
boolean validationSuccess = ObjectUtils.isEmpty(validationExceptions);
if (!validationSuccess) {