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.

84 lines
1.0 KiB

  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. #include "stdafx.h"
  12. #ifdef TRC_FILE
  13. #undef TRC_FILE
  14. #endif
  15. #define TRC_FILE "rce"
  16. #include "rcontrol.h"
  17. #include "Exception.h"
  18. CException::CException(
  19. IN UINT uID
  20. )
  21. /*++
  22. Routine Description:
  23. Creates a new exception and loads the error string.
  24. Arguments:
  25. uID - Resource id of the string to load.
  26. Return Value:
  27. None
  28. --*/
  29. {
  30. DC_BEGIN_FN("CException::CException");
  31. LoadStringSimple(uID,m_errstr);
  32. DC_END_FN();
  33. }
  34. CException::CException(
  35. IN CException &rException
  36. )
  37. /*++
  38. Routine Description:
  39. Copy constructor for CException.
  40. Arguments:
  41. rException - Exception to copy the error from.
  42. Return Value:
  43. None
  44. --*/
  45. {
  46. DC_BEGIN_FN("CException::CException");
  47. _tcscpy(m_errstr,rException.m_errstr);
  48. DC_END_FN();
  49. }