Practical error handling question
Practical error handling question
- Subject: Practical error handling question
- From: "Christian Moen" <email@hidden>
- Date: Fri, 2 Jan 2009 09:17:57 +0900
cocoa-dev,
I've read the Error Handling Programming Guide For Cocoa and I'd very
much like to confer with other Cocoa developers how they do their
error handling using NSError.
My application, as most applications, I guess, can fail several
functional areas and for many reasons. I'd like my application to
have good error handling mechanisms in place that capture errors
accurately.
For smaller applications, is it common practice to define an error
domain for the entire application using the
com.company.app.ErrorDomain naming scheme and then define error codes
and keys for localized error descriptions in a centralized header file
or error utility class used throughout the application?
The above is my planned approach, at least. Feedback and tips are most welcome.
Many thanks,
Christian
_______________________________________________
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