SilentEye 0.4.1
|
00001 // This file is part of SilentEye. 00002 // 00003 // SilentEye is free software: you can redistribute it and/or modify 00004 // it under the terms of the GNU General Public License as published by 00005 // the Free Software Foundation, either version 3 of the License, or 00006 // (at your option) any later version. 00007 // 00008 // SilentEye is distributed in the hope that it will be useful, 00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 // GNU General Public License for more details. 00012 // 00013 // You should have received a copy of the GNU General Public License 00014 // along with SilentEye. If not, see <http://www.gnu.org/licenses/>. 00015 00016 #ifndef _SILENTEYE_EXCEPTION_H_ 00017 #define _SILENTEYE_EXCEPTION_H_ 00018 00019 #include <QtCore> 00020 00021 namespace SilentEyeFramework { 00022 00024 class SilentEyeException : public QtConcurrent::Exception 00025 { 00026 protected: 00027 QString m_message; 00028 QString m_details; 00029 00030 public: 00031 SilentEyeException(const QString& message) throw(); 00032 SilentEyeException(const QString& message, const QString& details) throw(); 00033 00034 SilentEyeException(const SilentEyeException& exception) throw(); 00035 ~SilentEyeException() throw(); 00036 00037 QString message() const; 00038 QString details() const; 00039 00040 void raise() const{ throw *this; } 00041 Exception *clone() const{ return new SilentEyeException(*this); } 00042 }; 00043 00044 } 00045 00046 #endif