BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
xmlBase::ParseException Class Reference

Exception class for XmlParser, XmlErrorHandler. More...

#include <XmlErrorHandler.h>

+ Inheritance diagram for xmlBase::ParseException:

Public Member Functions

 ParseException (const std::string &extraInfo="")
 
virtual ~ParseException () throw ()
 
virtual std::string getMsg ()
 
virtual const char * what ()
 
 ParseException (const std::string &extraInfo="")
 
virtual ~ParseException () throw ()
 
virtual std::string getMsg ()
 
virtual const char * what ()
 

Protected Attributes

std::string m_name
 

Detailed Description

Constructor & Destructor Documentation

◆ ParseException() [1/2]

xmlBase::ParseException::ParseException ( const std::string &  extraInfo = "")
inline

Definition at line 18 of file Calibration/xmlBase/xmlBase-00-00-03/xmlBase/XmlErrorHandler.h.

18 : std::exception(),
19 m_name("ParseException"), m_extra(extraInfo) {}

◆ ~ParseException() [1/2]

virtual xmlBase::ParseException::~ParseException ( )
throw (
)
inlinevirtual

◆ ParseException() [2/2]

xmlBase::ParseException::ParseException ( const std::string &  extraInfo = "")
inline

Definition at line 18 of file InstallArea/include/xmlBase/xmlBase/XmlErrorHandler.h.

18 : std::exception(),
19 m_name("ParseException"), m_extra(extraInfo) {}

◆ ~ParseException() [2/2]

virtual xmlBase::ParseException::~ParseException ( )
throw (
)
inlinevirtual

Member Function Documentation

◆ getMsg() [1/2]

virtual std::string xmlBase::ParseException::getMsg ( )
inlinevirtual

Definition at line 21 of file Calibration/xmlBase/xmlBase-00-00-03/xmlBase/XmlErrorHandler.h.

21 {
22 std::string msg = m_name + ": " + m_extra;
23 return msg;}

Referenced by main().

◆ getMsg() [2/2]

virtual std::string xmlBase::ParseException::getMsg ( )
inlinevirtual

Definition at line 21 of file InstallArea/include/xmlBase/xmlBase/XmlErrorHandler.h.

21 {
22 std::string msg = m_name + ": " + m_extra;
23 return msg;}

◆ what() [1/2]

virtual const char * xmlBase::ParseException::what ( )
inlinevirtual

Definition at line 24 of file Calibration/xmlBase/xmlBase-00-00-03/xmlBase/XmlErrorHandler.h.

24 {
25 return m_extra.c_str();
26 }

◆ what() [2/2]

virtual const char * xmlBase::ParseException::what ( )
inlinevirtual

Definition at line 24 of file InstallArea/include/xmlBase/xmlBase/XmlErrorHandler.h.

24 {
25 return m_extra.c_str();
26 }

Member Data Documentation

◆ m_name

std::string xmlBase::ParseException::m_name
protected

The documentation for this class was generated from the following files: