Commit 6bb83696 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 {
try {
this.lastDate = Tren.DATE_FORMAT.parse(textContent);
} 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