MySqlException.h

00001 #ifndef SCTARCHIVING_MYSQLEXCEPTION_H
00002 #define SCTARCHIVING_MYSQLEXCEPTION_H
00003 #include <mysql.h>
00004 using namespace std;
00005 
00006 namespace SctArchiving{
00012   class MySqlException : public Sct::Exception{
00013  public:
00017     MySqlException(const string& msg, const string& file, int line) throw() {
00018       initialize("MYSQL_ERROR", "SctArchiving::MySqlException", msg, 0, file, line);
00019     }
00023     MySqlException(const string& msg, Throwable* cause, 
00024           const string& file, int line) throw() {
00025       initialize("MYSQL_ERROR", "Sct::MySqlException", msg, cause, file, line);
00026     }
00027   protected:
00028     MySqlException() throw() {} 
00029 };
00030 }
00031 
00032 #endif //SCTARCHIVING_MYSQLEXCEPTION_H

Generated on Mon Feb 6 14:01:23 2006 for SCT DAQ/DCS Software - C++ by  doxygen 1.4.6