Skip to content

Instantly share code, notes, and snippets.

@esaounkine
Created December 9, 2013 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esaounkine/7873450 to your computer and use it in GitHub Desktop.
Save esaounkine/7873450 to your computer and use it in GitHub Desktop.
SMV multi-error sample (more examples at http://wiki.datamation.gr/x/OIBH)
SwiftMessage message = new SwiftMsgProcessor().ParseMsgStringToObject(messageContent);
SwiftMsgValidator validator = new SwiftMsgValidator(DEFAULT_CRLF);
SwiftValidObj validation = validator.validateMsg(message);
for(ValidationError error : validation.getValidationErrorList()) {
System.out.println(error.getTagName() + " => " + error.getDescription());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment