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

Generated on Thu Nov 24 23:14:29 2005 for GigaBASE by doxygen 1.3.5