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:
committed by
Artem Bilan
parent
1eefab9339
commit
5cb9f05a40
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user