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

error.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *                                                                         *
00003  *   error.h                                                               *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   Read the file COPYING for details.                                    *
00011  *                                                                         *
00012  *   copyright: (C) 2003 by Jan Mueller                                    *
00013  *   email: janmueller7@hotmail.com                                        *
00014  *                                                                         *
00015  ***************************************************************************/
00016 
00017 #ifndef Error_included
00018 #define Error_included
00019 #include <qstring.h>
00020 #include <qsqlerror.h>
00021 
00022 class Error {
00023     
00024     QString m;
00025     
00026     public:
00027     Error(QSqlError err):
00028     m(err.driverText()+":"+err.databaseText()) {
00029       debug(m);
00030     }
00031     Error(QString message): 
00032     m(message) {
00033       debug(m);
00034     }
00035     QString message() { return m; }
00036 };
00037 
00038 #endif

Generated on Sat Mar 27 19:20:38 2004 for Literature by doxygen 1.3.6-20040222