CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
cscdqm::XMLFileErrorHandler Class Reference

Takes care of errors and warnings while parsing XML files file in XML format. More...

#include <CSCDQM_Exception.h>

Inheritance diagram for cscdqm::XMLFileErrorHandler:

Public Member Functions

void error (const XERCES_CPP_NAMESPACE::SAXParseException &exc) override
 
void fatalError (const XERCES_CPP_NAMESPACE::SAXParseException &exc) override
 
void resetErrors () override
 
void warning (const XERCES_CPP_NAMESPACE::SAXParseException &exc) override
 

Detailed Description

Takes care of errors and warnings while parsing XML files file in XML format.

Definition at line 54 of file CSCDQM_Exception.h.

Member Function Documentation

void cscdqm::XMLFileErrorHandler::error ( const XERCES_CPP_NAMESPACE::SAXParseException &  exc)
inlineoverride

Definition at line 62 of file CSCDQM_Exception.h.

References fatalError().

62 { this->fatalError(exc); }
void fatalError(const XERCES_CPP_NAMESPACE::SAXParseException &exc) override
void cscdqm::XMLFileErrorHandler::fatalError ( const XERCES_CPP_NAMESPACE::SAXParseException &  exc)
inlineoverride

Definition at line 64 of file CSCDQM_Exception.h.

References Exception, and LOG_COUT.

Referenced by error().

64  {
65  char* message = XERCES_CPP_NAMESPACE::XMLString::transcode(exc.getMessage());
66  LOG_COUT << "File: " << message << ". line: " << exc.getLineNumber() << " col: " << exc.getColumnNumber();
67  throw Exception(message);
68  }
#define LOG_COUT
Definition: CSCDQM_Logger.h:43
void cscdqm::XMLFileErrorHandler::resetErrors ( )
inlineoverride

Definition at line 70 of file CSCDQM_Exception.h.

70 {}
void cscdqm::XMLFileErrorHandler::warning ( const XERCES_CPP_NAMESPACE::SAXParseException &  exc)
inlineoverride

Definition at line 56 of file CSCDQM_Exception.h.

References LOG_WARN, and fetchall_from_DQM_v2::release.

56  {
57  char* message = XERCES_CPP_NAMESPACE::XMLString::transcode(exc.getMessage());
58  LOG_WARN << "File: " << message << ". line: " << exc.getLineNumber() << " col: " << exc.getColumnNumber();
60  }
#define LOG_WARN
Definition: CSCDQM_Logger.h:41