Macro

NS_DURING

Marks the start of the exception-handling domain.

Declaration

#define NS_DURING

Discussion

The NS_DURING macro marks the start of the exception-handling domain for a section of code. (The NS_HANDLERmacro marks the end of the domain.) Within the exception-handling domain you can raise an exception, giving the local exception handler (or lower exception handlers) a chance to handle it.

See Also

Legacy Macros

NS_ENDHANDLER

Marks the end of the local event handler.

NS_HANDLER

Marks the end of the exception-handling domain and the start of the local exception handler.

NS_VALUERETURN

Permits program control to exit from an exception-handling domain with a value of a specified type.

NS_VOIDRETURN

Permits program control to exit from an exception-handling domain.