Skip to content

Commit

Permalink
Removed an exception not thrown
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Feb 18, 2024
1 parent f17ddd4 commit 7c73446
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,6 @@ public List<XMLError> validate(String file)

Builder parser = new Builder(xerces, true);
parser.build(new FileInputStream(xmlFile));
} catch (ValidityException exception) {
int errorCount = exception.getErrorCount();
for (int i=0; i<errorCount; i++) {
errors.add(new XMLError(exception.getValidityError(i)));
}
} catch (ParsingException exception) {
errors.add(new XMLError(exception.getMessage()));
} catch (IOException exception) {
Expand Down

0 comments on commit 7c73446

Please sign in to comment.