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