ConvertException function (dbgmodel.h)

Trap and convert all exceptions coming out of a functor to an appropriate HRESULT.

C++ Specific API Helper.

Syntax

HRESULT ConvertException(
  const FN & fn
);

Parameters

fn

An HRESULT returning functor. If the functor throws an exception, the exception will be caught and converted to an HRESULT.

Return value

This function returns HRESULT.

Requirements

Requirement Value
Header dbgmodel.h