Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

SysError.h

Go to the documentation of this file.
00001 // Win32Error.h: interface for the Win32Error class.
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_)

Generated on Thu Jun 16 00:13:14 2005 for Netlib for Abuse! by  doxygen 1.4.3