CMS 3D CMS Logo

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>

List of all members.

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]

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 python::rootplot::argparse::message.

Referenced by error().

                                                                        {
        char* message = XERCES_CPP_NAMESPACE::XMLString::transcode(exc.getMessage());
        LOG_COUT << "File: " << message << ". line: " << exc.getLineNumber() << " col: " << exc.getColumnNumber();
        throw Exception(message);
      }
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, python::rootplot::argparse::message, and fetchall_from_DQM_v2::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);
      }