RpcTryExcept

The RpcTryExcept statement provides structured exception handling for RPC applications. If any of the program statements in the RpcTryExcept cause an exception, the statements in the RpcExcept code block are executed. All RpcTryExcept statements must be terminated by the RpcEndExcept statement.

For more information, see RpcExcept.

Windows Vista and later versions of Windows: RpcExceptionFilter is recommended for structured exception handling for the most common exceptions as an alternative to custom filters with RpcExcept.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Rpc.h

See also

RpcExcept

RpcExceptionFilter

RpcTryFinally