Leaked source code of windows server 2003
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.

73 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 2002 Microsoft Corporation
  3. Module Name:
  4. SceLogException.h
  5. Abstract:
  6. definition of interface for class SceLogException
  7. SceLogException is the exception class used internally
  8. within the SecMan dll. SecLogExceptions can be thrown
  9. and additional debug information can be added to
  10. the SecLogException each time it is caught.
  11. Author:
  12. Steven Chan (t-schan) July 2002
  13. --*/
  14. #ifndef SCELOGEXCEPTIONH
  15. #define SCELOGEXCEPTIONH
  16. class SceLogException{
  17. public:
  18. typedef enum _SXERROR {
  19. SXERROR_INTERNAL,
  20. SXERROR_OS_NOT_SUPPORTED,
  21. SXERROR_INIT,
  22. SXERROR_INIT_MSXML,
  23. SXERROR_SAVE,
  24. SXERROR_SAVE_INVALID_FILENAME,
  25. SXERROR_SAVE_ACCESS_DENIED,
  26. SXERROR_OPEN,
  27. SXERROR_OPEN_FILE_NOT_FOUND,
  28. SXERROR_READ,
  29. SXERROR_READ_NO_ANALYSIS_TABLE,
  30. SXERROR_READ_NO_CONFIGURATION_TABLE,
  31. SXERROR_READ_ANALYSIS_SUGGESTED,
  32. SXERROR_INSUFFICIENT_MEMORY
  33. } SXERROR;
  34. SXERROR ErrorType;
  35. PWSTR szDebugInfo;
  36. PWSTR szMoreInfo;
  37. PWSTR szArea;
  38. PWSTR szSettingName;
  39. DWORD dwErrorCode;
  40. SceLogException(IN SXERROR ErrorType,
  41. IN PCWSTR szDebugInfo OPTIONAL,
  42. IN PCWSTR szSuggestion OPTIONAL,
  43. IN DWORD dwErrorCode);
  44. ~SceLogException();
  45. void ChangeType(IN SXERROR ErrorType);
  46. void AddDebugInfo(IN PCWSTR szDebugInfo);
  47. void AddMoreInfo(IN PCWSTR szSuggestion);
  48. void SetSettingName(IN PCWSTR szSettingName);
  49. void SetArea(IN PCWSTR szArea);
  50. private:
  51. };
  52. #endif