--- /dev/null
+// Copyright (C) 2014 Christian Jaekl
+
+// Simple SAX parse error handler.
+// Necessary to avoid printing [Fatal Error] messages to stdout when something goes wrong.
+
+package net.jaekl.qd.xml;
+
+import org.xml.sax.ErrorHandler;
+import org.xml.sax.SAXException;
+import org.xml.sax.SAXParseException;
+
+public class ParseErrorHandler implements ErrorHandler {
+
+ @Override
+ public void error(SAXParseException saxpe) throws SAXException {
+ throw saxpe;
+ }
+
+ @Override
+ public void fatalError(SAXParseException saxpe) throws SAXException {
+ throw saxpe;
+ }
+
+ @Override
+ public void warning(SAXParseException saxpe) throws SAXException {
+ throw saxpe;
+ }
+
+}