Share via


IDebugBinder3::GetExceptionObjectAndType

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

This method retrieves the exception associated with an object, if any.

Syntax

HRESULT GetExceptionObjectAndType(  
   IDebugObject** ppException,  
   IDebugField**  ppField  
);  
int GetExceptionObjectAndType(  
   out IDebugObject ppException,  
   out IDebugField  ppField  
);  

Parameters

ppException
[out] Returns the object representing the exception.

ppField
[out] Returns the object representing a specific field that may have caused the exception (this may be a null value).

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Note

To verify whether there is an exception, check the value returned by ppException: if it is a null value, then no exception is associated with this object.

See Also

IDebugBinder3