Macro

NS_HANDLER

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

Declaration

#define NS_HANDLER

Discussion

The NS_HANDLER macro marks end of a section of code that is an exception-handling domain while at the same time marking the beginning of a section of code that is a local exception handler for that domain. (The NS_DURING macro marks the beginning of the exception-handling domain; the NS_ENDHANDLER marks the end of the local exception handler.) If an exception is raised in the exception-handling domain, the local exception handler is first given the chance to handle the exception before lower-level handlers are given a chance.

See Also

Legacy Macros

NS_DURING

Marks the start of the exception-handling domain.

NS_ENDHANDLER

Marks the end of the local event 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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software