db/zz_db_exception.h

Go to the documentation of this file.
00001 /* libzzdb
00002  *
00003  * This program is distributed under the GNU General Public License, version 2.
00004  * A copy of this license is included with this source.
00005  *
00006  * Copyright 2000-2006, Toni Thomsson <toni@tonjac.org> 
00007 */
00008 
00009 
00010 #ifndef zz_db_exception_h
00011 #define zz_db_exception_h
00012 
00013 #include <zz_log_exception.h>
00014 #include <zz_errors.h>
00015 
00016 #include <otl.h>
00017 
00018 #include <zz_db.h>
00019 
00020 
00021 /*********************************************************************
00022   Class: CzzDbException
00023 
00024  ********************************************************************/
00025 
00026 class ZZ_API CzzDbException: public CzzLogException
00027 {
00028 public:
00029 
00030         // Construction/destruction
00031         CzzDbException(const int row 
00032                        , const char* file
00033                        , const CzzString descr);
00034 
00035         // Construction/destruction
00036         CzzDbException(const int row
00037                        , const char* file
00038                        , const CzzString descr
00039                        , otl_exception& e);
00040 
00041 
00042         // Construction/destruction
00043         CzzDbException(const int row
00044                        , const char* file
00045                        , const CzzString descr
00046                        , CzzDb& db);
00047 
00048         // Construction/destruction
00049         CzzDbException(const int row
00050                        , const char* file
00051                        , const CzzString descr
00052                        , CzzSQLStream& s);
00053 
00054 
00055         ~CzzDbException();
00056 
00057 
00058         // !!!!!Do not use, only for internal use!!!!
00059         static otl_exception   m_LastExtException;
00060 
00061 protected:
00062         void Init(const int row
00063                   , const char* file
00064                   , const CzzString descr
00065                   , const char* ora_msg
00066                   , const char* ora_stm);
00067 
00068 
00069 };
00070 
00071 #endif
00072 
00073 
00074 
00075 
00076 

Generated on Thu Sep 21 21:45:42 2006 for tonjac.org MINI/C++ library by  doxygen 1.4.6-NO