I'm looking to start putting error catches into my code, and I want to see what NSError
objects do for me on their own and what I'd have to add in myself.
Looking at this SO question and the Apple Docs, it looks like all NSError
does is hold onto a numeric error code, the location of the error, and a description of the error. For all three of these items, I have to specify them in my code. Then, if I want to do something like skip to the end of any methods currently being executed (that would most likely cause a crash if the app tried to run them), or display a UIAlertView
telling the user there was an error, I have to specify all of that on my own as well, correct?
I'm a bit of a beginner, so is there anything else I would want to consider doing?