• 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
Cocoa Error Handling (remix)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cocoa Error Handling (remix)


  • Subject: Cocoa Error Handling (remix)
  • From: Hua Ying Ling <email@hidden>
  • Date: Mon, 12 Apr 2004 18:44:05 -0400

In interest of building more robust applications which return informative error messages, I've been looking into error handling techniques.

From this thread: <http://cocoa.mamasam.com/MACOSXDEV/2002/10/1/46831.php>, I gather I should rarely use NSException. Would someone give me more examples of situations that fall under this category: (quoting Erik M. Buck from above thread: ... Exceptions should be used as a last opportunity to handle a situation that should _never_ happen ...

It looks like I should now use NSErrors? Which domain should I use since there doesn't seem to be a Cocoa domain?

Are there any articles, sample code, or books on error handling that you would recommend?

Thanks
~Hua Ying
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Cocoa Error Handling (remix)
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: Coco with java resources?
  • Next by Date: Re: NSMutableDictionary and retirieving data from web
  • Previous by thread: Re: Coco with java resources?
  • Next by thread: Re: Cocoa Error Handling (remix)
  • Index(es):
    • Date
    • Thread