XMLReader.readXMLFileToString no longer throws a Transformer exception.

This commit is contained in:
fjc40
2017-08-11 22:38:39 +12:00
parent 61d18f85c5
commit b625b6ab05
7 changed files with 12 additions and 9 deletions
@@ -38,7 +38,7 @@ public class BoatXMLReaderTest {
try {
boatXMLString = XMLReader.readXMLFileToString("mock/mockXML/boatTest.xml", StandardCharsets.UTF_8);
} catch (TransformerException | XMLReaderException e) {
} catch (XMLReaderException e) {
throw new InvalidBoatDataException("Could not read boat XML file into a string.", e);
}
@@ -18,7 +18,7 @@ public class RaceXMLReaderTest {
try {
raceXMLString = XMLReader.readXMLFileToString("mock/mockXML/raceTest.xml", StandardCharsets.UTF_8);
} catch (TransformerException | XMLReaderException e) {
} catch (XMLReaderException e) {
throw new InvalidRaceDataException("Could not read race XML file into a string.", e);
}
@@ -27,7 +27,7 @@ public class RegattaXMLReaderTest {
try {
regattaXMLString = XMLReader.readXMLFileToString("mock/mockXML/regattaTest.xml", StandardCharsets.UTF_8);
} catch (TransformerException | XMLReaderException e) {
} catch (XMLReaderException e) {
throw new InvalidRegattaDataException("Could not read regatta XML file into a string.", e);
}