• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Exceptions vs. pointers to error objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Exceptions vs. pointers to error objects
      • From: "Ken Ferry" <email@hidden>
    • Re: Exceptions vs. pointers to error objects
      • From: "Stephen J. Butler" <email@hidden>
    • Re: Exceptions vs. pointers to error objects
      • From: Charles Steinman <email@hidden>
  • Prev by Date: Re: Problems when putting a window between desktop and desktop icons
  • Next by Date: Re: Problems when putting a window between desktop and desktop icons
  • Previous by thread: Re: KVO and array item observation
  • Next by thread: Re: Exceptions vs. pointers to error objects
  • Index(es):
    • Date
    • Thread