updated to modern VTK
[engrid-github.git] / src / libengrid / error.h
blob011c26385bbbf5e0a3785fb58a08e48389b801bd
1 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 // + +
3 // + This file is part of enGrid. +
4 // + +
5 // + Copyright 2008-2014 enGits GmbH +
6 // + +
7 // + enGrid is free software: you can redistribute it and/or modify +
8 // + it under the terms of the GNU General Public License as published by +
9 // + the Free Software Foundation, either version 3 of the License, or +
10 // + (at your option) any later version. +
11 // + +
12 // + enGrid is distributed in the hope that it will be useful, +
13 // + but WITHOUT ANY WARRANTY; without even the implied warranty of +
14 // + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +
15 // + GNU General Public License for more details. +
16 // + +
17 // + You should have received a copy of the GNU General Public License +
18 // + along with enGrid. If not, see <http://www.gnu.org/licenses/>. +
19 // + +
20 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
21 #ifndef error_H
22 #define error_H
24 class Error;
26 #include <QString>
28 class Error
31 public: // types
33 enum error_t { ExitProgram, ExitOperation, CancelOperation };
35 public: // methods
37 Error();
38 void setType(error_t a_type);
39 void setText(QString a_text);
40 void display();
42 private: // attributes
44 error_t type;
45 QString text;
49 #endif