unmarshaller.setEventHandler( new ValidationEventHandler() { public boolean handleEvent(ValidationEvent event ) { ValidationEventLocator locator = event.getLocator(); String errorMessage = "Line:Column[" + locator.getLineNumber() + ":" + locator.getColumnNumber() + "]:" + event.getMessage(); throw new RuntimeException(errorMessage, event.getLinkedException()); } });
No comments:
Post a Comment