BOSS 6.6.4.p03
BESIII Offline Software System
|
#include <XmlErrorHandler.h>
Public Member Functions | |
XmlErrorHandler (bool throwErrors=false) | |
~XmlErrorHandler () | |
void | warning (const SAXParseException &exception) |
Keep count of warnings seen. | |
void | error (const SAXParseException &exception) |
Output row, column of parse error and increment counter. | |
void | fatalError (const SAXParseException &exception) |
Output row, column of fatal parse error and increment counter. | |
void | resetErrors () |
Clear counters. | |
int | getWarningCount () const |
int | getErrorCount () const |
int | getFatalCount () const |
This class handles errors during parsing of an xml file. By default output will go to cerr, but if throwErrors is set to true an exception of type xml::ParseException will be thrown instead
Definition at line 38 of file XmlErrorHandler.h.
Definition at line 41 of file XmlErrorHandler.h.
|
inline |
Definition at line 43 of file XmlErrorHandler.h.
void XmlErrorHandler::error | ( | const SAXParseException & | exception | ) |
Output row, column of parse error and increment counter.
Definition at line 17 of file XmlErrorHandler.cxx.
void XmlErrorHandler::fatalError | ( | const SAXParseException & | exception | ) |
Output row, column of fatal parse error and increment counter.
Definition at line 43 of file XmlErrorHandler.cxx.
|
inline |
Definition at line 57 of file XmlErrorHandler.h.
Referenced by xmlBase::XmlParser::parse().
|
inline |
Definition at line 58 of file XmlErrorHandler.h.
Referenced by xmlBase::XmlParser::parse().
|
inline |
Definition at line 56 of file XmlErrorHandler.h.
void XmlErrorHandler::resetErrors | ( | ) |
Clear counters.
Definition at line 82 of file XmlErrorHandler.cxx.
Referenced by XmlErrorHandler().
void XmlErrorHandler::warning | ( | const SAXParseException & | exception | ) |
Keep count of warnings seen.
Definition at line 13 of file XmlErrorHandler.cxx.