Takes care of errors and warnings while parsing XML files file in XML format. More...
#include <CSCDQM_Exception.h>
Public Member Functions | |
void | error (const XERCES_CPP_NAMESPACE::SAXParseException &exc) |
void | fatalError (const XERCES_CPP_NAMESPACE::SAXParseException &exc) |
void | resetErrors () |
void | warning (const XERCES_CPP_NAMESPACE::SAXParseException &exc) |
Takes care of errors and warnings while parsing XML files file in XML format.
Definition at line 61 of file CSCDQM_Exception.h.
void cscdqm::XMLFileErrorHandler::error | ( | const XERCES_CPP_NAMESPACE::SAXParseException & | exc | ) | [inline] |
Definition at line 71 of file CSCDQM_Exception.h.
References fatalError().
{ this->fatalError(exc); }
void cscdqm::XMLFileErrorHandler::fatalError | ( | const XERCES_CPP_NAMESPACE::SAXParseException & | exc | ) | [inline] |
Definition at line 75 of file CSCDQM_Exception.h.
References Exception, LOG_COUT, and argparse::message.
Referenced by error().
void cscdqm::XMLFileErrorHandler::resetErrors | ( | ) | [inline] |
Definition at line 81 of file CSCDQM_Exception.h.
{ }
void cscdqm::XMLFileErrorHandler::warning | ( | const XERCES_CPP_NAMESPACE::SAXParseException & | exc | ) | [inline] |
Definition at line 65 of file CSCDQM_Exception.h.
References LOG_WARN, argparse::message, and cmsPerfSuiteHarvest::release.
{ char* message = XERCES_CPP_NAMESPACE::XMLString::transcode(exc.getMessage()); LOG_WARN << "File: " << message << ". line: " << exc.getLineNumber() << " col: " << exc.getColumnNumber(); XERCES_CPP_NAMESPACE::XMLString::release(&message); }