00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef __EXCEPTION_H__
00012 #define __EXCEPTION_H__
00013
00014 #ifndef __SYMBIAN_OS__
00015 #include "exception"
00016 #endif
00017
00018 BEGIN_GIGABASE_NAMESPACE
00019
00020 #ifdef GIGABASE_DLL
00021 class __declspec(dllexport) std::exception;
00022 #endif
00023
00027 class GIGABASE_DLL_ENTRY dbException
00028 #ifndef __SYMBIAN_OS__
00029 : public std::exception
00030 #endif
00031 {
00032 protected:
00033 int err_code;
00034 char* msg;
00035 int arg;
00036
00037 public:
00044 dbException(int p_err_code, const char* p_msg = NULL, int p_arg = 0);
00045
00049 dbException(dbException const& ex);
00050
00054 virtual ~dbException() throw ();
00055
00056 virtual const char *what() const throw();
00057
00062 int getErrCode() const { return err_code; }
00063
00067 char* getMsg() const { return msg; }
00068
00072 long getArg() const { return arg; }
00073 };
00074
00075 END_GIGABASE_NAMESPACE
00076
00077 #endif