00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef __EXCEPTION_H__
00012 #define __EXCEPTION_H__
00013
00014 BEGIN_GIGABASE_NAMESPACE
00015
00019 class GIGABASE_DLL_ENTRY dbException
00020 {
00021 protected:
00022 int err_code;
00023 char* msg;
00024 int arg;
00025
00026 public:
00033 dbException(int p_err_code, const char* p_msg = NULL, int p_arg = 0);
00034
00038 dbException(dbException const& ex);
00039
00043 ~dbException();
00044
00049 int getErrCode() const { return err_code; }
00050
00054 char* getMsg() const { return msg; }
00055
00059 long getArg() const { return arg; }
00060 };
00061
00062 END_GIGABASE_NAMESPACE
00063
00064 #endif