BOSS 7.0.7
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 ()
 

Protected Attributes

std::string m_name
 

Detailed Description

Definition at line 8 of file RdbException.h.

Constructor & Destructor Documentation

◆ RdbException()

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

Definition at line 10 of file RdbException.h.

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

◆ ~RdbException()

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

Definition at line 13 of file RdbException.h.

13{}

Member Function Documentation

◆ getCode()

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

Definition at line 17 of file RdbException.h.

17{ return m_code;}

Referenced by main().

◆ getMsg()

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

◆ what()

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

Definition at line 18 of file RdbException.h.

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

Member Data Documentation

◆ m_name

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

Definition at line 22 of file RdbException.h.

Referenced by getMsg().


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