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.

49 lines
1.3 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Copyright (C) 1994, Microsoft Corporation.
  4. //
  5. // File: msgexcpt.hxx
  6. //
  7. // Contents: Message exception package
  8. //
  9. // History: 96-Jan-98 DwightKr Created
  10. //
  11. //----------------------------------------------------------------------------
  12. #pragma once
  13. //+---------------------------------------------------------------------------
  14. //
  15. // Class: CMsgException
  16. //
  17. // Purpose: Exception class containing message numbers referring to
  18. // keys within query.dll
  19. //
  20. // History: 96-Jan-08 DwightKr Created.
  21. //
  22. //----------------------------------------------------------------------------
  23. class CMsgException : public CException
  24. {
  25. public:
  26. CMsgException( long lError, ULONG ulErrorIndex )
  27. : _ulErrorIndex(ulErrorIndex), CException(lError)
  28. {
  29. }
  30. ULONG GetErrorIndex() const { return _ulErrorIndex; }
  31. // inherited methods
  32. EXPORTDEF virtual int WINAPI IsKindOf( const char * szClass ) const
  33. {
  34. if( strcmp( szClass, "CMsgException" ) == 0 )
  35. return TRUE;
  36. else
  37. return CException::IsKindOf( szClass );
  38. }
  39. private:
  40. ULONG _ulErrorIndex;
  41. };