00001
00002
00004
00005 #if !defined(AFX_WIN32ERROR_H__4A48AD09_8EC6_48D2_BC29_986C25F03772__INCLUDED_)
00006 #define AFX_WIN32ERROR_H__4A48AD09_8EC6_48D2_BC29_986C25F03772__INCLUDED_
00007
00008 #if _MSC_VER >= 1000
00009 #pragma once
00010 #endif // _MSC_VER >= 1000
00011 #include <stdexcept>
00012 #include <string>
00014 class SysError:public std::runtime_error
00015 {
00016 public:
00018 SysError();
00020
00023 SysError(int code);
00025 virtual ~SysError()throw();
00027
00030 int code()const{return m_code;}
00031 private:
00032 std::string errorDesc(int code);
00033 int m_code;
00034 };
00035
00036 #endif // !defined(AFX_WIN32ERROR_H__4A48AD09_8EC6_48D2_BC29_986C25F03772__INCLUDED_)