Skip to content

Commit

Permalink
uncommented catch
Browse files Browse the repository at this point in the history
  • Loading branch information
rspacerr committed Apr 7, 2023
1 parent 27a675b commit 60dfe57
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void initializeBoard(int rows, int columns) {
*/
@Override
public void initializeBoard(Node node) throws InvalidFileFormatException {
//try {
try {
if (!node.getNodeName().equalsIgnoreCase("board")) {
throw new InvalidFileFormatException("TreeTent Importer: cannot find board puzzleElement");
}
Expand Down Expand Up @@ -171,9 +171,9 @@ public void initializeBoard(Node node) throws InvalidFileFormatException {
}

puzzle.setCurrentBoard(treeTentBoard);
//}
//catch (NumberFormatException e) {
// throw new InvalidFileFormatException("TreeTent Importer: unknown value where integer expected");
//}
}
catch (NumberFormatException e) {
throw new InvalidFileFormatException("TreeTent Importer: unknown value where integer expected");
}
}
}

0 comments on commit 60dfe57

Please sign in to comment.