What about exceptions?



I can’t find any discussion of objective c exceptions in the Obj-C Programming book.

Am I blind?

Any particular reason why they are not covered?


John A.


The purpose of the book is to help you learn how to crawl. To learn more about the Objective-C Language and related topics, you should always read the documentation provided by Apple.

To read all about exceptions, go to the section entitled Exception Handling in The Objective-C Programming Language.


Also, Objective-C programmers rarely throw exceptions. For most of the things that a Java person would throw an exception for, we just pass an NSError by reference.

In 22 years as a professional Objective-C programmer, I can count the number of times that I’ve tried to catch an exception on my fingers.