I am starting to program an iOS application. After reading Apple's guidelines on how to deal with bugs, I got the following most important points:
- Exceptions for programmers
- Use
NSErrorfor user
Now NSErrorusually passed as an external argument, which can then be used internally and must be verified by the caller. However, I ask myself if it is useful to use a global error handler, say, singleton, which wraps around NSErrorand can be used to trigger errors and handle errors from the called function.
Is there anything against this method or will it be bad practice?
source
share