} catch (SAXParseException e) {
final String name = e.getSystemId();
final String msg = e.getMessage();
final int line = e.getLineNumber();
final int column = e.getColumnNumber();
return asList(new ValidationError(name, msg, e, line, column));
} catch (SAXException e) {
final String name = f.toString();
final String msg = e.getMessage();
return asList(new ValidationError(name, msg, e, -1, -1));
} catch (IOException e) {
final String name = f.toString();
final String msg = e.getMessage();
return asList(new ValidationError(name, msg, e, -1, -1));
}
List<ValidationError> ret = sizedArrayList(saxErrors.size());
for (final SAXParseException saxError : saxErrors) {
final String name = saxError.getSystemId();
final String msg = saxError.getMessage();
final int line = saxError.getLineNumber();
final int column = saxError.getColumnNumber();
ret.add(new ValidationError(name, msg, saxError, line, column));
}
return ret;
}