How does Objective-C handle exceptions vs errors?

Updated May 17, 2026

Short answer

Exceptions are for programmer errors; NSError is used for recoverable failures.

Deep explanation

Objective-C exceptions use @try/@catch and are rare in Cocoa APIs due to performance cost and instability risks. Instead, NSError patterns are used for expected failures like network errors. Exceptions typically represent fatal programming issues.

Unlock with a Pro subscription to view this section.

View pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More Objective-C interview questions

View all →