windows-nt/Source/XPSP1/NT/inetsrv/query/h/msgexcpt.hxx

50 lines
1.2 KiB
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
//+---------------------------------------------------------------------------
//
// 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;
};