rdbModel::RdbException Class Reference

#include <RdbException.h>

List of all members.

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

Private Attributes

std::string m_extra
int m_code


Detailed Description

Definition at line 8 of file RdbException.h.


Constructor & Destructor Documentation

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

Definition at line 10 of file RdbException.h.

00010                                                               : 
00011       std::exception(),
00012       m_name("RdbException"), m_extra(extraInfo), m_code(code) {}

virtual rdbModel::RdbException::~RdbException (  )  throw () [inline, virtual]

Definition at line 13 of file RdbException.h.

00013 {}


Member Function Documentation

virtual int rdbModel::RdbException::getCode (  )  const [inline, virtual]

Definition at line 17 of file RdbException.h.

References m_code.

Referenced by main().

00017 { return m_code;}

virtual std::string rdbModel::RdbException::getMsg (  )  [inline, virtual]

Definition at line 14 of file RdbException.h.

References m_extra, m_name, and deljobs::string.

Referenced by rdbModel::MysqlConnection::compileAssertion(), doSmartInsert(), doSupersede(), rdbModel::Table::insertLatest(), rdbModel::Table::insertRow(), main(), and rdbModel::Table::supersedeRow().

00014                                {
00015       std::string msg = m_name + ": " + m_extra;
00016       return msg;}

virtual const char* rdbModel::RdbException::what (  )  [inline, virtual]

Definition at line 18 of file RdbException.h.

References m_extra.

00018                                {
00019       return m_extra.c_str();
00020     }


Member Data Documentation

int rdbModel::RdbException::m_code [private]

Definition at line 25 of file RdbException.h.

Referenced by getCode().

std::string rdbModel::RdbException::m_extra [private]

Definition at line 24 of file RdbException.h.

Referenced by getMsg(), and what().

std::string rdbModel::RdbException::m_name [protected]

Definition at line 22 of file RdbException.h.

Referenced by getMsg().


Generated on Tue Nov 29 23:36:36 2016 for BOSS_7.0.2 by  doxygen 1.4.7