Exceptions vs. pointers to error objects
Exceptions vs. pointers to error objects
- Subject: Exceptions vs. pointers to error objects
- From: Colin Cornaby <email@hidden>
- Date: Tue, 28 Oct 2008 00:58:30 -0700
I'm writing an API to communicate with a web service, and I was just
wondering what the thinking is on exceptions vs. functions returning
an NSError in some way. Basically I'm wondering what people's opinions
are on a function throwing an exception on failure, vs returning an
NSError object.
Perhaps there is already a policy on when each is to be used. If so,
please enlighten me. :)
Thanks,
Colin
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden