CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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)
 
void fatalError (const XERCES_CPP_NAMESPACE::SAXParseException &exc)
 
void resetErrors ()
 
void warning (const XERCES_CPP_NAMESPACE::SAXParseException &exc)
 

Detailed Description

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

Definition at line 61 of file CSCDQM_Exception.h.

Member Function Documentation

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

Definition at line 75 of file CSCDQM_Exception.h.

References edm::hlt::Exception, LOG_COUT, and python.rootplot.argparse::message.

Referenced by error().

75  {
76  char* message = XERCES_CPP_NAMESPACE::XMLString::transcode(exc.getMessage());
77  LOG_COUT << "File: " << message << ". line: " << exc.getLineNumber() << " col: " << exc.getColumnNumber();
78  throw Exception(message);
79  }
#define LOG_COUT
Definition: CSCDQM_Logger.h:44
void cscdqm::XMLFileErrorHandler::resetErrors ( )
inline

Definition at line 81 of file CSCDQM_Exception.h.

81 { }
void cscdqm::XMLFileErrorHandler::warning ( const XERCES_CPP_NAMESPACE::SAXParseException &  exc)
inline

Definition at line 65 of file CSCDQM_Exception.h.

References LOG_WARN, python.rootplot.argparse::message, and fetchall_from_DQM_v2::release.

65  {
66  char* message = XERCES_CPP_NAMESPACE::XMLString::transcode(exc.getMessage());
67  LOG_WARN << "File: " << message << ". line: " << exc.getLineNumber() << " col: " << exc.getColumnNumber();
69  }
#define LOG_WARN
Definition: CSCDQM_Logger.h:42