BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
xmlBase::DomException Class Reference

Base exception class for Dom. More...

#include <Dom.h>

+ Inheritance diagram for xmlBase::DomException:

Public Member Functions

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

Protected Attributes

std::string m_name
 

Detailed Description

Base exception class for Dom.

Definition at line 29 of file Dom.h.

Constructor & Destructor Documentation

◆ DomException()

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

Definition at line 31 of file Dom.h.

31 : std::exception(),
32 m_name("DomException"), m_extra(extraInfo) {}
std::string m_name
Definition: Dom.h:41

◆ ~DomException()

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

Definition at line 33 of file Dom.h.

33{}

Member Function Documentation

◆ getMsg()

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

Definition at line 34 of file Dom.h.

34 {
35 std::string msg = m_name + ": " + m_extra;
36 return msg;}

Referenced by XmlTest1Cnv::i_createObj(), main(), and calibUtil::StripSrv::StripSrv().

◆ what()

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

Definition at line 37 of file Dom.h.

37 {
38 return m_extra.c_str();
39 }

Member Data Documentation

◆ m_name

std::string xmlBase::DomException::m_name
protected

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