Main Page | Class Hierarchy | Class List | File List | Class Members

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

Generated on Thu Feb 12 18:46:27 2004 for GigaBASE by doxygen 1.3.5