00001 //******************************************************************************* 00002 // 00003 // ******* *** *** * 00004 // * * * * 00005 // * * * ***** 00006 // * * *** * * ** * ** *** 00007 // * * * * * * * **** * * * 00008 // * * * * * * * * * * * 00009 // * *** *** * ** ** ** * * 00010 // * 00011 //******************************************************************************* 00012 // see http://sourceforge.net/projects/tcsystem/ for details. 00013 // Copyright (C) 2003 - 2008 Thomas Goessler. All Rights Reserved. 00014 //******************************************************************************* 00015 // 00016 // TCSystem is the legal property of its developers. 00017 // Please refer to the COPYRIGHT file distributed with this source distribution. 00018 // 00019 // This library is free software; you can redistribute it and/or 00020 // modify it under the terms of the GNU Lesser General Public 00021 // License as published by the Free Software Foundation; either 00022 // version 2.1 of the License, or (at your option) any later version. 00023 // 00024 // This library is distributed in the hope that it will be useful, 00025 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00026 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00027 // Lesser General Public License for more details. 00028 // 00029 // You should have received a copy of the GNU Lesser General Public 00030 // License along with this library; if not, write to the Free Software 00031 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. 00032 //******************************************************************************* 00033 // $Id: TCException.h 838 2008-04-10 09:29:33Z the_____tiger $ 00034 //******************************************************************************* 00035 #ifndef _TC_EXCEPTION_H_ 00036 #define _TC_EXCEPTION_H_ 00037 00038 #include "TCTypes.h" 00039 00040 #include <exception> 00041 #include <string> 00042 00043 namespace TC 00044 { 00061 class TCBASE_API Exception: public std::exception 00062 { 00063 public: 00064 Exception(); 00065 Exception(const char* what); 00066 Exception(const std::string& what); 00067 ~Exception() throw(); 00068 00070 virtual const char* what() const throw(); 00071 00072 protected: 00073 void SetExceptionString(const std::string& text); 00074 private: 00075 std::string m_what; 00076 }; 00077 } 00078 00079 #endif // _TC_EXCEPTION_H_ 00080