Public Member Functions | Protected Attributes

dbException Class Reference

#include <exception.h>

Inheritance diagram for dbException:
ConnectionException CursorException

List of all members.

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

Detailed Description

Exception class thrown by GigaBASE when compiled with THROW_EXCEPTION_ON_ERROR


Constructor & Destructor Documentation

dbException::dbException ( int  p_err_code,
const char *  p_msg = NULL,
int  p_arg = 0 
)

Exception constructor

Parameters:
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


Member Function Documentation

long dbException::getArg (  )  const [inline]

Get optional argument

int dbException::getErrCode (  )  const [inline]

Get error code

Returns:
error code as defined in dbErrorClass enum in database.h
char* dbException::getMsg (  )  const [inline]

Get message text


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