As “Why Have Error Objects?” points out, NSError objects bring considerable advantages to Cocoa programming. But the Cocoa frameworks also give NSError objects a prominent role to play in architectures for error presentation and error recovery. These architectures enhance the usefulness of error objects. They make it possible for Cocoa applications to present users with a richer and more customizable range of messages, and to attempt recovery from errors as well as informing users of them.
Note: The error-presentation and error-recovery architectures described in this chapter are new with Mac OS X v10.4. Earlier versions of the operating system do not have these architectures.
The Error-Responder Chain
Error Customization
Error Recovery
Last updated: 2006-10-03