dol: initial dol commit
[jump.git] / dol / src / dol / helper / flattener / BugCatcher.java
diff --git a/dol/src/dol/helper/flattener/BugCatcher.java b/dol/src/dol/helper/flattener/BugCatcher.java
new file mode 100644 (file)
index 0000000..30fa28f
--- /dev/null
@@ -0,0 +1,26 @@
+/* $Id: BugCatcher.java 1 2010-02-24 13:03:05Z haidw $ */
+
+package dol.helper.flattener;
+
+import org.xml.sax.ErrorHandler;
+import org.xml.sax.SAXParseException;
+
+/**
+ *
+ */
+class BugCatcher implements ErrorHandler {
+   public void error(SAXParseException ex) {
+      System.out.println("[ERROR  ]: "+ex.getMessage());
+
+   }
+
+   public void fatalError(SAXParseException ex)  {
+      System.out.println("[PIZDEC ]: "+ex.getMessage());
+
+   }
+
+   public void warning(SAXParseException ex)  {
+      System.out.println("[WARNING]: "+ex.getMessage());
+
+   }
+}