Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Checked Exceptions in objc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Checked Exceptions in objc



On May 15, 2007, at 4:43 PM, Mike Manzano wrote:
So, here's another question. Has anyone found a good rule of thumb for when to use exceptions in objective-c over just asserting something, returning nil, or passing information out in an NSError reference?

I follow Apple's (and NeXT's before) pattern of only using NSExceptions to indicate programmer or other system failure states.


Though I would often rather use exceptions than the NSError (or other) patterns, I find that making my APIs "impedance match" Apple's leads to match less maintenance frustration over time.

b.bum
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Checked Exceptions in objc (From: Mike Manzano <email@hidden>)
 >Re: Checked Exceptions in objc (From: Jonathan deWerd <email@hidden>)
 >Re: Checked Exceptions in objc (From: Mike Manzano <email@hidden>)
 >Re: Checked Exceptions in objc (From: "Philip Q" <email@hidden>)
 >Re: Checked Exceptions in objc (From: Chris Hanson <email@hidden>)
 >Re: Checked Exceptions in objc (From: Mike Manzano <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.