4#ifndef xmlBase_XmlErrorHandler_h
5#define xmlBase_XmlErrorHandler_h
7#include <xercesc/sax/ErrorHandler.hpp>
8#include <xercesc/sax/SAXParseException.hpp>
13 XERCES_CPP_NAMESPACE_USE
19 m_name(
"ParseException"), m_extra(extraInfo) {}
22 std::string msg =
m_name +
": " + m_extra;
24 virtual const char*
what() {
25 return m_extra.c_str();
47 void warning(
const SAXParseException& exception);
49 void error(
const SAXParseException& exception);
51 void fatalError(
const SAXParseException& exception);
Exception class for XmlParser, XmlErrorHandler.
virtual ~ParseException()
ParseException(const std::string &extraInfo="")
virtual const char * what()
virtual std::string getMsg()
void warning(const SAXParseException &exception)
Keep count of warnings seen.
void resetErrors()
Clear counters.
int getFatalCount() const
int getErrorCount() const
XmlErrorHandler(bool throwErrors=false)
void fatalError(const SAXParseException &exception)
Output row, column of fatal parse error and increment counter.
int getWarningCount() const
void error(const SAXParseException &exception)
Output row, column of parse error and increment counter.