19 #ifndef CSCDQM_Exception_H
20 #define CSCDQM_Exception_H
25 #include <xercesc/sax/ErrorHandler.hpp>
26 #include <xercesc/sax/SAXParseException.hpp>
65 void warning(
const XERCES_CPP_NAMESPACE::SAXParseException& exc) {
66 char*
message = XERCES_CPP_NAMESPACE::XMLString::transcode(exc.getMessage());
67 LOG_WARN <<
"File: " << message <<
". line: " << exc.getLineNumber() <<
" col: " << exc.getColumnNumber();
71 void error(
const XERCES_CPP_NAMESPACE::SAXParseException& exc) {
75 void fatalError(
const XERCES_CPP_NAMESPACE::SAXParseException& exc) {
76 char*
message = XERCES_CPP_NAMESPACE::XMLString::transcode(exc.getMessage());
77 LOG_COUT <<
"File: " << message <<
". line: " << exc.getLineNumber() <<
" col: " << exc.getColumnNumber();
Application level Exception that is used to cut-off application execution in various cases...
void warning(const XERCES_CPP_NAMESPACE::SAXParseException &exc)
virtual const char * what() const
Exception(const std::string &message)
void fatalError(const XERCES_CPP_NAMESPACE::SAXParseException &exc)
void error(const XERCES_CPP_NAMESPACE::SAXParseException &exc)
Takes care of errors and warnings while parsing XML files file in XML format.