#include <XincludeErrHandler.h>
Definition at line 11 of file XincludeErrHandler.h.
◆ XIncludeErrHandler() [1/2]
XIncludeErrHandler::XIncludeErrHandler |
( |
| ) |
|
◆ ~XIncludeErrHandler()
XIncludeErrHandler::~XIncludeErrHandler |
( |
| ) |
|
|
default |
◆ XIncludeErrHandler() [2/2]
◆ getSawErrors()
bool XIncludeErrHandler::getSawErrors |
( |
| ) |
const |
|
inline |
◆ handleError()
bool XIncludeErrHandler::handleError |
( |
const xercesc::DOMError & |
domError | ) |
|
Definition at line 15 of file XincludeErrHandler.cxx.
16 bool continueParsing =
true;
18 if (domError.getSeverity() == xercesc::DOMError::DOM_SEVERITY_WARNING) {
19 std::cout <<
"\nWarning at file ";
20 }
else if (domError.getSeverity() == xercesc::DOMError::DOM_SEVERITY_ERROR) {
21 std::cout <<
"\nError at file ";
24 std::cout <<
"\nFatal Error at file ";
25 continueParsing =
false;
29 std::cout <<
toNative(domError.getLocation()->getURI())
30 <<
", line " << domError.getLocation()->getLineNumber()
31 <<
", char " << domError.getLocation()->getColumnNumber()
32 <<
"\n Message: " <<
toNative(domError.getMessage()) << std::endl;
34 return continueParsing;
◆ operator=()
◆ resetErrors()
void XIncludeErrHandler::resetErrors |
( |
| ) |
|
◆ m_errors
bool XIncludeErrHandler::m_errors |
|
private |
The documentation for this class was generated from the following files: