• Main Page
  • Classes
  • Files
  • File List

exception.h

00001 //-< EXCEPTION.H >---------------------------------------------------*--------*
00002 // GigaBASE                  Version 1.0         (c) 1999  GARRET    *     ?  *
00003 // (Post Relational Database Management System)                      *   /\|  *
00004 //                                                                   *  /  \  *
00005 //                          Created:     3-Oct-99 Sebastiano Suraci  * / [] \ *
00006 //                          Last update: 5-Oct-99 K.A. Knizhnik      * GARRET *
00007 //-------------------------------------------------------------------*--------*
00008 // Database exception
00009 //-------------------------------------------------------------------*--------*
00010 
00011 #ifndef __EXCEPTION_H__
00012 #define __EXCEPTION_H__
00013 
00014 #ifndef __SYMBIAN32__
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 __SYMBIAN32__
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

Generated on Mon Aug 23 2010 00:04:01 for GigaBASE by  doxygen 1.7.1