00001 /*************************************************************************** 00002 * errors.h 00003 * 00004 * Sun Sep 12 22:14:20 2004 00005 * Copyright 2004 thierry schartz 00006 * thierry.schartz@bluebottle.com 00007 ****************************************************************************/ 00008 00009 /* 00010 * This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your option) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU Library General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU General Public License 00021 * along with this program; if not, write to the Free Software 00022 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00023 */ 00024 00025 #ifndef _ERRORS_H 00026 #define _ERRORS_H 00027 00028 #ifdef WIN32 00029 #include <windows.h> 00030 #endif 00031 00032 #include <string> 00033 #include "build.h" 00034 00035 namespace ngn { 00036 namespace sys { 00037 00038 00042 class NGN_API Error 00043 { 00044 public: 00045 Error(); 00046 Error( const Error& err ); 00047 Error( std::string msg ); 00049 std::string getError() const; 00050 00051 protected: 00052 std::string m_msg; 00053 std::string m_messenger; // type of error 00054 00055 }; 00059 class NGN_API IOError : public Error 00060 { 00061 public: 00062 IOError(); 00063 IOError( const IOError& err ); 00064 IOError( std::string msg ); 00065 }; 00066 00067 class NGN_API BspError : public Error 00068 { 00069 public: 00070 BspError(); 00071 BspError( const BspError& err ); 00072 BspError( std::string msg ); 00073 }; 00074 00075 00076 }//sys 00077 }//ngn 00078 #endif /* _ERRORS_H */ 00079 00080
1.3.9.1