Huggle  build:^490^dce1e5c
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
exception.hpp
1 //This program is free software: you can redistribute it and/or modify
2 //it under the terms of the GNU General Public License as published by
3 //the Free Software Foundation, either version 3 of the License, or
4 //(at your option) any later version.
5 
6 //This program is distributed in the hope that it will be useful,
7 //but WITHOUT ANY WARRANTY; without even the implied warranty of
8 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 //GNU General Public License for more details.
10 
11 #ifndef EXCEPTION_H
12 #define EXCEPTION_H
13 
14 #include <iostream>
15 #include <QString>
16 
17 namespace Huggle
18 {
19  //! Every exception raised by huggle is defined by this class
20  class Exception
21  {
22  public:
23  //! Error code
24  int ErrorCode;
25  QString Source;
26  //! Reason for crash
27  QString Message;
28  //! ctor
29  Exception(QString Text, bool __IsRecoverable = true);
30  Exception(QString Text, QString _Source, bool __IsRecoverable = true);
31  bool IsRecoverable();
32  private:
33  bool _IsRecoverable;
34  };
35 }
36 
37 #endif // EXCEPTION_H
QString Message
Reason for crash.
Definition: exception.hpp:27
int ErrorCode
Error code.
Definition: exception.hpp:24
Every exception raised by huggle is defined by this class.
Definition: exception.hpp:20
Exception(QString Text, bool __IsRecoverable=true)
ctor
Definition: exception.cpp:15