summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/isode/stroke/parser/AaltoXMLParser.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/isode/stroke/parser/AaltoXMLParser.java b/src/com/isode/stroke/parser/AaltoXMLParser.java
index 041dc1e..52fabea 100644
--- a/src/com/isode/stroke/parser/AaltoXMLParser.java
+++ b/src/com/isode/stroke/parser/AaltoXMLParser.java
@@ -47,6 +47,7 @@ class AaltoXMLParser extends XMLParser {
inputFeeder.feedInput(xmlBytes, 0, xmlBytes.length);
} catch (XMLStreamException ex) {
error = true;
+ /* This is an unexpected error */
throw new IllegalStateException(ex);
}
@@ -75,7 +76,7 @@ class AaltoXMLParser extends XMLParser {
}
} catch (XMLStreamException e) {
error = true;
- throw new IllegalStateException(e);
+ /* This type of error (illegal XML) is ~expected */
}
if (type == XMLStreamConstants.END_DOCUMENT) {
try {