This class implements Xerces interface for error handlers. More...
#include <ErrorHandler.h>
Public Member Functions | |
void | error (const xercesc::SAXParseException &exc) |
It receives from the parser a notification of a recoverable error. More... | |
ErrorHandler () | |
Default constructor. More... | |
void | fatalError (const xercesc::SAXParseException &exc) |
It receives from the parser a notification of a non-recoverable error. More... | |
const std::string & | getError (std::size_t i) const |
It returns the n-th error message. More... | |
const std::string | getErrors () const |
It returns a concatenation of all reported error messages. More... | |
const std::size_t | getNumErros () const |
It returns the number of reported errors. More... | |
void | resetErrors () |
void | warning (const xercesc::SAXParseException &exc) |
It receives from the parser a notification of a warning. More... | |
~ErrorHandler () | |
Destructor. More... | |
Protected Attributes | |
std::vector< std::string > | m_errors |
The error messages. More... | |
This class implements Xerces interface for error handlers.
Definition at line 50 of file ErrorHandler.h.
|
inline |
Default constructor.
Definition at line 55 of file ErrorHandler.h.
|
inline |
Destructor.
Definition at line 58 of file ErrorHandler.h.
References error(), fatalError(), getError(), getErrors(), getNumErros(), resetErrors(), and warning().
void te::xerces::ErrorHandler::error | ( | const xercesc::SAXParseException & | exc | ) |
It receives from the parser a notification of a recoverable error.
exc | The error information. |
Referenced by ~ErrorHandler().
void te::xerces::ErrorHandler::fatalError | ( | const xercesc::SAXParseException & | exc | ) |
It receives from the parser a notification of a non-recoverable error.
exc | The error information. |
Referenced by ~ErrorHandler().
const std::string& te::xerces::ErrorHandler::getError | ( | std::size_t | i | ) | const |
It returns the n-th error message.
i | The error message position in the internal conteiner. |
Referenced by ~ErrorHandler().
const std::string te::xerces::ErrorHandler::getErrors | ( | ) | const |
It returns a concatenation of all reported error messages.
Referenced by ~ErrorHandler().
const std::size_t te::xerces::ErrorHandler::getNumErros | ( | ) | const |
It returns the number of reported errors.
Referenced by ~ErrorHandler().
void te::xerces::ErrorHandler::resetErrors | ( | ) |
brief It resets the error handler object on its reuse.
Referenced by ~ErrorHandler().
void te::xerces::ErrorHandler::warning | ( | const xercesc::SAXParseException & | exc | ) |
It receives from the parser a notification of a warning.
exc | The warning information. |
Referenced by ~ErrorHandler().
|
protected |
The error messages.
Definition at line 111 of file ErrorHandler.h.