다음을 통해 공유


RaiseException Function

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at RaiseException Function.

Supports the WRL infrastructure and is not intended to be used directly from your code.

Syntax

inline void __declspec(noreturn)   RaiseException(  
      HRESULT hr,   
      DWORD dwExceptionFlags = EXCEPTION_NONCONTINUABLE);  

Parameters

hr
The exception code of the exception being raised; that is, the HRESULT of a failed operation.

dwExceptionFlags
A flag that indicates a continuable exception (the flag value is zero), or noncontinuable exception (flag value is nonzero). By default, the exception is noncontinuable.

Remarks

Raises an exception in the calling thread.

For more information, see the Windows RaiseException function.

Requirements

Header: internal.h

Namespace: Microsoft::WRL::Details

See Also

Microsoft::WRL::Details Namespace