summaryrefslogtreecommitdiff
path: root/ACEXML/common/ErrorHandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACEXML/common/ErrorHandler.h')
-rw-r--r--ACEXML/common/ErrorHandler.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/ACEXML/common/ErrorHandler.h b/ACEXML/common/ErrorHandler.h
new file mode 100644
index 00000000000..b8c7004980b
--- /dev/null
+++ b/ACEXML/common/ErrorHandler.h
@@ -0,0 +1,37 @@
+// -*- C++ -*- $Id$
+
+#ifndef _ACEXML_ERRORHANDLER_H_
+#define _ACEXML_ERRORHANDLER_H_
+
+#include "Common/Env.h"
+#include "Common/SAXExceptions.h"
+
+class ACEXML_Export ACEXML_ErrorHandler
+{
+public:
+ /*
+ * Receive notification of a recoverable error.
+ */
+ virtual void error (ACEXML_SAXParseException &exception,
+ ACEXML_Env &xmlenv)
+ // ACE_THROW_SPEC ((ACEXML_SAXException))
+ = 0;
+
+ /*
+ * Receive notification of a non-recoverable error.
+ */
+ virtual void fatalError (ACEXML_SAXParseException &exception,
+ ACEXML_Env &xmlenv)
+ // ACE_THROW_SPEC ((ACEXML_SAXException))
+ = 0;
+
+ /*
+ * Receive notification of a warning.
+ */
+ virtual void warning (ACEXML_SAXParseException &exception,
+ ACEXML_Env &xmlenv)
+ // ACE_THROW_SPEC ((ACEXML_SAXException))
+ = 0;
+};
+
+#endif /* _ACEXML_ERRORHANDLER_H_ */