00001
00007 #include "global.h"
00008
00009 #ifndef GAMEEXCEPTION_H_DFWER234
00010 #define GAMEEXCEPTION_H_DFWER234
00011
00015 class GameException {
00016 public:
00020 GameException();
00021
00025 explicit GameException( const std::string& msg );
00026
00031 GameException( const std::string& msg, HRESULT errorCode );
00032
00037 void showMessageBox() const;
00038
00042 const std::string& getMessage() const;
00043
00048 void addMessage( const std::string& m );
00049
00050 private:
00051 std::string msg;
00052 };
00053
00054 #endif //#ifdef GAMEEXCEPTION_H_DFWER234