BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
rdbModel::RdbException Class Reference

#include <RdbException.h>

+ Inheritance diagram for rdbModel::RdbException:

Public Member Functions

 RdbException (const std::string &extraInfo="", int code=0)
 
virtual ~RdbException () throw ()
 
virtual std::string getMsg ()
 
virtual int getCode () const
 
virtual const char * what ()
 
 RdbException (const std::string &extraInfo="", int code=0)
 
virtual ~RdbException () throw ()
 
virtual std::string getMsg ()
 
virtual int getCode () const
 
virtual const char * what ()
 

Protected Attributes

std::string m_name
 

Detailed Description

Constructor & Destructor Documentation

◆ RdbException() [1/2]

rdbModel::RdbException::RdbException ( const std::string &  extraInfo = "",
int  code = 0 
)
inline

Definition at line 10 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/RdbException.h.

10 :
11 std::exception(),
12 m_name("RdbException"), m_extra(extraInfo), m_code(code) {}

◆ ~RdbException() [1/2]

virtual rdbModel::RdbException::~RdbException ( )
throw (
)
inlinevirtual

◆ RdbException() [2/2]

rdbModel::RdbException::RdbException ( const std::string &  extraInfo = "",
int  code = 0 
)
inline

Definition at line 10 of file InstallArea/include/rdbModel/rdbModel/RdbException.h.

10 :
11 std::exception(),
12 m_name("RdbException"), m_extra(extraInfo), m_code(code) {}

◆ ~RdbException() [2/2]

virtual rdbModel::RdbException::~RdbException ( )
throw (
)
inlinevirtual

Definition at line 13 of file InstallArea/include/rdbModel/rdbModel/RdbException.h.

13{}

Member Function Documentation

◆ getCode() [1/2]

virtual int rdbModel::RdbException::getCode ( ) const
inlinevirtual

Definition at line 17 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/RdbException.h.

17{ return m_code;}

Referenced by main().

◆ getCode() [2/2]

virtual int rdbModel::RdbException::getCode ( ) const
inlinevirtual

Definition at line 17 of file InstallArea/include/rdbModel/rdbModel/RdbException.h.

17{ return m_code;}

◆ getMsg() [1/2]

virtual std::string rdbModel::RdbException::getMsg ( )
inlinevirtual

◆ getMsg() [2/2]

virtual std::string rdbModel::RdbException::getMsg ( )
inlinevirtual

Definition at line 14 of file InstallArea/include/rdbModel/rdbModel/RdbException.h.

14 {
15 std::string msg = m_name + ": " + m_extra;
16 return msg;}

◆ what() [1/2]

virtual const char * rdbModel::RdbException::what ( )
inlinevirtual

Definition at line 18 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/RdbException.h.

18 {
19 return m_extra.c_str();
20 }

◆ what() [2/2]

virtual const char * rdbModel::RdbException::what ( )
inlinevirtual

Definition at line 18 of file InstallArea/include/rdbModel/rdbModel/RdbException.h.

18 {
19 return m_extra.c_str();
20 }

Member Data Documentation

◆ m_name

std::string rdbModel::RdbException::m_name
protected

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