26 #ifndef __TERRALIB_XERCES_INTERNAL_ERRORHANDLER_H 27 #define __TERRALIB_XERCES_INTERNAL_ERRORHANDLER_H 37 #include <xercesc/sax/ErrorHandler.hpp> 65 void warning(
const xercesc::SAXParseException& exc);
72 void error(
const xercesc::SAXParseException& exc);
79 void fatalError(
const xercesc::SAXParseException& exc);
100 const std::string&
getError(std::size_t i)
const;
117 #endif // __TERRALIB_XERCES_INTERNAL_ERRORHANDLER_H
void warning(const xercesc::SAXParseException &exc)
It receives from the parser a notification of a warning.
const std::size_t getNumErros() const
It returns the number of reported errors.
void fatalError(const xercesc::SAXParseException &exc)
It receives from the parser a notification of a non-recoverable error.
std::vector< std::string > m_errors
The error messages.
const std::string getErrors() const
It returns a concatenation of all reported error messages.
This class implements Xerces interface for error handlers.
~ErrorHandler()
Destructor.
const std::string & getError(std::size_t i) const
It returns the n-th error message.
ErrorHandler()
Default constructor.
void error(const xercesc::SAXParseException &exc)
It receives from the parser a notification of a recoverable error.