00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _EXCEPTION_H_
00022 #define _EXCEPTION_H_
00023
00024 #include <windows.h>
00025 #include <string>
00026
00027 namespace TestFrameWork
00028 {
00029
00030 class Exception
00031 {
00032 public:
00033 Exception(const std::wstring& message = L"");
00034
00035 ~Exception(void);
00036
00037 DWORD GetErrorCode(void) const;
00038
00039 const std::wstring& GetErrorFormattedString(void) const;
00040
00041 const std::wstring& GetMessage(void) const;
00042
00043 protected:
00044 std::wstring m_message;
00045
00046 DWORD m_errorCode;
00047
00048 std::wstring m_formattedError;
00049
00050 };
00051
00052 }
00053 #endif