00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
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;
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 }
00077 }
00078 #endif
00079
00080