31 #include <xercesc/sax/SAXParseException.hpp>
40 m_errors.push_back(
ToString(exc.getMessage()));
45 m_errors.push_back(
ToString(exc.getMessage()));
55 return m_errors.size();
67 for(std::size_t i = 0; i < m_errors.size(); ++i)
void warning(const xercesc::SAXParseException &exc)
It receives from the parser a notification of a warning.
This class implements Xerces interface for error handlers.
void fatalError(const xercesc::SAXParseException &exc)
It receives from the parser a notification of a non-recoverable error.
const std::string & getError(std::size_t i) const
It returns the n-th error message.
const std::string getErrors() const
It returns a concatenation of all reported error messages.
std::vector< std::string > m_errors
The error messages.
const std::size_t getNumErros() const
It returns the number of reported errors.
std::string ToString(const XMLCh *const value)
It converts the XML string to a standard C++ string.
void error(const xercesc::SAXParseException &exc)
It receives from the parser a notification of a recoverable error.