#include <RdbException.h>
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 |
Definition at line 8 of file RdbException.h.
rdbModel::RdbException::RdbException | ( | const std::string & | extraInfo = "" , |
|
int | code = 0 | |||
) | [inline] |
virtual rdbModel::RdbException::~RdbException | ( | ) | throw () [inline, virtual] |
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 }
int rdbModel::RdbException::m_code [private] |
std::string rdbModel::RdbException::m_extra [private] |
std::string rdbModel::RdbException::m_name [protected] |