Introduction to Exception Programming Topics for Cocoa
Explains how to raise and handle exceptions in Cocoa applications.
Organization of This Document
This document contains the following articles:
Exceptions and the Cocoa Frameworks describes NSException objects and their general use with the Cocoa frameworks.
Handling Exceptions describes how to handle an exception using the compiler directives @try , @catch , and @finally .
Throwing Exceptions describes how to throw (raise) an exception.
Nesting Exception Handlers describes how exception handlers can be nested.
Predefined Exceptions describes where to find exceptions defined by Cocoa.
Uncaught Exceptions describes what happens to an exception not caught by an exception handler.
Controlling a Program’s Response to Exceptions describes how to use the Exception Handling framework for monitoring and controlling the behavior of Cocoa programs in response to various types of exceptions.
Exceptions in 64-Bit Executables describes zero-cost @try blocks and C++ interoperability in 64-bit executables.
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.
Next
Copyright © 2002, 2013 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2013-08-08