Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
711 B

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. Exception
  5. Abstract:
  6. This is a simple class to do exceptions. The only thing it does
  7. is return an error string.
  8. Author:
  9. Marc Reyhner 7/17/2000
  10. --*/
  11. #ifndef __EXCEPTION_H__
  12. #define __EXCEPTION_H__
  13. #include "rcontrol.h"
  14. ////////////////////////////////////////////////
  15. //
  16. // CException
  17. //
  18. // Class for doing exceptions.
  19. //
  20. class CException
  21. {
  22. public:
  23. CException(UINT uID);
  24. CException(CException &rException);
  25. inline LPCTSTR GetErrorStr() const
  26. {
  27. DC_BEGIN_FN("CException::GetErrorStr");
  28. DC_END_FN();
  29. return m_errstr;
  30. };
  31. private:
  32. TCHAR m_errstr[MAX_STR_LEN];
  33. };
  34. #endif