BOSS 7.1.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 ()
 

Protected Attributes

std::string m_name
 

Detailed Description

Exception class for XmlParser, XmlErrorHandler.

Definition at line 16 of file XmlErrorHandler.h.

Constructor & Destructor Documentation

◆ ParseException()

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

Definition at line 18 of file XmlErrorHandler.h.

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

◆ ~ParseException()

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

Definition at line 20 of file XmlErrorHandler.h.

20{}

Member Function Documentation

◆ getMsg()

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

Definition at line 21 of file XmlErrorHandler.h.

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

Referenced by main().

◆ what()

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

Definition at line 24 of file XmlErrorHandler.h.

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

Member Data Documentation

◆ m_name

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

Definition at line 28 of file XmlErrorHandler.h.

Referenced by getMsg().


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