CMS 3D CMS Logo

cscdqm::XMLFileErrorHandler Class Reference

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

#include <DQM/CSCMonitorModule/interface/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().

00071                                                                    {
00072         this->fatalError(exc);
00073       }

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

Definition at line 75 of file CSCDQM_Exception.h.

References Exception, LOG_ERROR, and transcode().

Referenced by error().

00075                                                                         {
00076         char* message = XERCES_CPP_NAMESPACE::XMLString::transcode(exc.getMessage());
00077         LOG_ERROR << "File: " << message << ". line: " << exc.getLineNumber() << " col: " << exc.getColumnNumber();
00078         throw Exception(message);
00079       }

void cscdqm::XMLFileErrorHandler::resetErrors (  )  [inline]

Definition at line 81 of file CSCDQM_Exception.h.

00081 { }

void cscdqm::XMLFileErrorHandler::warning ( const XERCES_CPP_NAMESPACE::SAXParseException &  exc  )  [inline]

Definition at line 65 of file CSCDQM_Exception.h.

References LOG_WARN, release(), and transcode().

00065                                                                      {
00066         char* message = XERCES_CPP_NAMESPACE::XMLString::transcode(exc.getMessage());
00067         LOG_WARN << "File: " << message << ". line: " << exc.getLineNumber() << " col: " << exc.getColumnNumber();
00068         XERCES_CPP_NAMESPACE::XMLString::release(&message);
00069       }


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:36:57 2009 for CMSSW by  doxygen 1.5.4