windows-nt/Source/XPSP1/NT/inetsrv/query/h/msgexcpt.hxx
2020-09-26 16:20:57 +08:00

50 lines
1.2 KiB
C++

//+---------------------------------------------------------------------------
//
// Copyright (C) 1994, Microsoft Corporation.
//
// File: msgexcpt.hxx
//
// Contents: Message exception package
//
// History: 96-Jan-98 DwightKr Created
//
//----------------------------------------------------------------------------
#pragma once
//+---------------------------------------------------------------------------
//
// Class: CMsgException
//
// Purpose: Exception class containing message numbers referring to
// keys within query.dll
//
// History: 96-Jan-08 DwightKr Created.
//
//----------------------------------------------------------------------------
class CMsgException : public CException
{
public:
CMsgException( long lError, ULONG ulErrorIndex )
: _ulErrorIndex(ulErrorIndex), CException(lError)
{
}
ULONG GetErrorIndex() const { return _ulErrorIndex; }
// inherited methods
EXPORTDEF virtual int WINAPI IsKindOf( const char * szClass ) const
{
if( strcmp( szClass, "CMsgException" ) == 0 )
return TRUE;
else
return CException::IsKindOf( szClass );
}
private:
ULONG _ulErrorIndex;
};