kexi

exception.h
1/***************************************************************************
2 * This file is part of the KDE project
3 * copyright (C) 2005 by Sebastian Sauer (mail@dipe.org)
4 * copyright (C) 2005 by Tobi Krebs (tobi.krebs@gmail.com)
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public License
15 * along with this program; see the file COPYING. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 ***************************************************************************/
19
20#ifndef KOMACRO_EXCEPTION_H
21#define KOMACRO_EXCEPTION_H
22
23#include <tqstring.h>
24#include <tqstringlist.h>
25
26#include "komacro_export.h"
27
28namespace KoMacro {
29
34 class KOMACRO_EXPORT Exception
35 {
36 public:
37
44 explicit Exception(const TQString& errormessage);
45
49 Exception(const Exception&);
50
54 virtual ~Exception();
55
59 const TQString errorMessage() const;
60
68 const TQString traceMessages() const;
69
73 void addTraceMessage(const TQString& tracemessage);
74
75 private:
77 class Private;
79 Private* const d;
80 };
81
82}
83
84#endif
void addTraceMessage(const TQString &tracemessage)
Add the message tracemessage to the list of traces.
Definition exception.cpp:88
const TQString errorMessage() const
Definition exception.cpp:76
const TQString traceMessages() const
Definition exception.cpp:82
Exception(const TQString &errormessage)
Constructor.
Definition exception.cpp:55