00001 /* 00002 Copyright 2008 Nikola Tassev 00003 This file is part of Embite. 00004 00005 Embite is free software: you can redistribute it and/or modify 00006 it under the terms of the GNU Lesser General Public License as published by 00007 the Free Software Foundation, either version 3 of the License, or 00008 (at your option) any later version. 00009 00010 Embite 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 00013 GNU Lesser General Public License for more details. 00014 00015 You should have received a copy of the GNU Lesser General Public License 00016 along with Embite. If not, see <http://www.gnu.org/licenses/>. 00017 */ 00018 #ifndef _Embite_EmbiteException_h 00019 #define _Embite_EmbiteException_h 00020 00021 namespace embite 00022 { 00023 00024 class EmbiteException : public std::exception 00025 { 00026 std::string m_message; 00027 00028 public: 00029 EmbiteException(const char* message) throw() : m_message(message) 00030 { 00031 } 00032 00033 virtual ~EmbiteException() throw() 00034 { 00035 } 00036 00037 virtual const char* what() throw () 00038 { 00039 return m_message.c_str(); 00040 } 00041 }; 00042 00043 } // namespace embite 00044 00045 #endif //_Embite_EmbiteException_h 00046