This class implements Xerces interface for error handlers.
More...
#include <ErrorHandler.h>
|
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...
|
|
This class implements Xerces interface for error handlers.
- See also
- Reader, ReaderHandler
Definition at line 50 of file ErrorHandler.h.
te::xerces::ErrorHandler::ErrorHandler |
( |
| ) |
|
|
inline |
te::xerces::ErrorHandler::~ErrorHandler |
( |
| ) |
|
|
inline |
void te::xerces::ErrorHandler::error |
( |
const xercesc::SAXParseException & |
exc | ) |
|
It receives from the parser a notification of a recoverable error.
- Parameters
-
exc | The error information. |
void te::xerces::ErrorHandler::fatalError |
( |
const xercesc::SAXParseException & |
exc | ) |
|
It receives from the parser a notification of a non-recoverable error.
- Parameters
-
exc | The error information. |
const std::string& te::xerces::ErrorHandler::getError |
( |
std::size_t |
i | ) |
const |
It returns the n-th error message.
- Parameters
-
i | The error message position in the internal conteiner. |
- Returns
- The n-th error message.
- Note
- This method doesn't check the index range.
const std::string te::xerces::ErrorHandler::getErrors |
( |
| ) |
const |
It returns a concatenation of all reported error messages.
- Returns
- A concatenation of all reported error messages.
const std::size_t te::xerces::ErrorHandler::getNumErros |
( |
| ) |
const |
It returns the number of reported errors.
- Returns
- The number of reported errors.
void te::xerces::ErrorHandler::resetErrors |
( |
| ) |
|
brief It resets the error handler object on its reuse.
void te::xerces::ErrorHandler::warning |
( |
const xercesc::SAXParseException & |
exc | ) |
|
It receives from the parser a notification of a warning.
- Parameters
-
exc | The warning information. |
std::vector<std::string> te::xerces::ErrorHandler::m_errors |
|
protected |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/xerces/ErrorHandler.h