CMS 3D CMS Logo

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

◆ error()

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

Definition at line 62 of file CSCDQM_Exception.h.

62 { this->fatalError(exc); }

References fatalError().

Referenced by Page1Parser.Page1Parser::check_for_whole_start_tag().

◆ fatalError()

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

Definition at line 64 of file CSCDQM_Exception.h.

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  }

References Exception, and LOG_COUT.

Referenced by error().

◆ resetErrors()

void cscdqm::XMLFileErrorHandler::resetErrors ( )
inlineoverride

Definition at line 70 of file CSCDQM_Exception.h.

70 {}

◆ warning()

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

Definition at line 56 of file CSCDQM_Exception.h.

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

References LOG_WARN, and fetchall_from_DQM_v2::release.

LOG_COUT
#define LOG_COUT
Definition: CSCDQM_Logger.h:43
cscdqm::XMLFileErrorHandler::fatalError
void fatalError(const XERCES_CPP_NAMESPACE::SAXParseException &exc) override
Definition: CSCDQM_Exception.h:64
fetchall_from_DQM_v2.release
release
Definition: fetchall_from_DQM_v2.py:92
Exception
Definition: hltDiff.cc:245
LOG_WARN
#define LOG_WARN
Definition: CSCDQM_Logger.h:41