kexi

exception.h

00001 /***************************************************************************
00002  * This file is part of the KDE project
00003  * copyright (C) 2005 by Sebastian Sauer (mail@dipe.org)
00004  * copyright (C) 2005 by Tobi Krebs (tobi.krebs@gmail.com)
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Library General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2 of the License, or (at your option) any later version.
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Library General Public License for more details.
00014  * You should have received a copy of the GNU Library General Public License
00015  * along with this program; see the file COPYING.  If not, write to
00016  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018  ***************************************************************************/
00019 
00020 #ifndef KOMACRO_EXCEPTION_H
00021 #define KOMACRO_EXCEPTION_H
00022 
00023 #include <qstring.h>
00024 #include <qstringlist.h>
00025 
00026 #include "komacro_export.h"
00027 
00028 namespace KoMacro {
00029 
00034     class KOMACRO_EXPORT Exception
00035     {
00036         public:
00037 
00044             explicit Exception(const QString& errormessage);
00045 
00049             Exception(const Exception&);
00050 
00054             virtual ~Exception();
00055 
00059             const QString errorMessage() const;
00060 
00068             const QString traceMessages() const;
00069 
00073             void addTraceMessage(const QString& tracemessage);
00074 
00075         private:
00077             class Private;
00079             Private* const d;
00080     };
00081 
00082 }
00083 
00084 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys