#include <exception.h>
Public Member Functions | |
dbException (int p_err_code, const char *p_msg=NULL, int p_arg=0) | |
dbException (dbException const &ex) | |
virtual | ~dbException () throw () |
virtual const char * | what () const throw () |
int | getErrCode () const |
char * | getMsg () const |
long | getArg () const |
Protected Attributes | |
int | err_code |
char * | msg |
int | arg |
Exception class thrown by GigaBASE when compiled with THROW_EXCEPTION_ON_ERROR
dbException::dbException | ( | int | p_err_code, | |
const char * | p_msg = NULL , |
|||
int | p_arg = 0 | |||
) |
Exception constructor
p_err_code | erro code as defined in dbErrorClass enum in database.h | |
p_msg | erro message | |
p_arg | message optional argument |
dbException::dbException | ( | dbException const & | ex | ) |
Copy constructor
virtual dbException::~dbException | ( | ) | throw () [virtual] |
Destructor
long dbException::getArg | ( | ) | const [inline] |
Get optional argument
int dbException::getErrCode | ( | ) | const [inline] |
Get error code
dbErrorClass
enum in database.h char* dbException::getMsg | ( | ) | const [inline] |
Get message text