00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef __EXCEPTION_H__
00012 #define __EXCEPTION_H__
00013
00014 #include "exception"
00015
00016 BEGIN_GIGABASE_NAMESPACE
00017
00021 class GIGABASE_DLL_ENTRY dbException : public std::exception
00022 {
00023 protected:
00024 int err_code;
00025 char* msg;
00026 int arg;
00027
00028 public:
00035 dbException(int p_err_code, const char* p_msg = NULL, int p_arg = 0);
00036
00040 dbException(dbException const& ex);
00041
00045 virtual ~dbException() throw ();
00046
00047 virtual const char *what() const throw();
00048
00053 int getErrCode() const { return err_code; }
00054
00058 char* getMsg() const { return msg; }
00059
00063 long getArg() const { return arg; }
00064 };
00065
00066 END_GIGABASE_NAMESPACE
00067
00068 #endif