You need to sign in or sign up before continuing.
Commit 7ee41f6a authored by Administrator's avatar Administrator

Changes runtime to SAX exception in TrenesContentHandler

The SAXException is more adequate than the RuntimeException.
parent e018e331
...@@ -39,7 +39,7 @@ public class TrenesContentHandler extends DefaultHandler { ...@@ -39,7 +39,7 @@ public class TrenesContentHandler extends DefaultHandler {
try { try {
this.lastDate = Tren.DATE_FORMAT.parse(textContent); this.lastDate = Tren.DATE_FORMAT.parse(textContent);
} catch (final ParseException pe) { } catch (final ParseException pe) {
throw new RuntimeException("Invalid date: " + textContent, pe); throw new SAXException("Invalid date: " + textContent, pe);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment