Introduction to Exception Programming Topics for Cocoa

This document discusses how to raise and handle exceptions: special conditions that interrupt the normal flow of program execution. The Objective-C directives and Foundation API for exceptions are available on iOS and OS X.

Instead of exceptions, error objects (NSError) and the Cocoa error-delivery mechanism are the recommended way to communicate expected errors in Cocoa applications. For further information, see Error Handling Programming Guide.

Organization of This Document

This document contains the following articles:

See Also

For information on originating, handling, and recovering from expected runtime errors, see Error Handling Programming Guide. Also see the related document,Assertions and Logging Programming Guide, for information on the Foundation framework's support for making assertions and logging error information.