I haven't dug into the error handling part of app dev yet, and it looks like what I want to do is not covered in the books I'm using now.
I used to write a universal error handling code set that would catch all catchable errors and records information before the program would crash.
This was with a error handler that was built into the API. In VB/C++/C# apps you would do this with a try... catch... throw and you could then send all the info you needed to your custom error handler function.
So far, I haven't seen anything like this in ObjC. In fact all the code I'm doing now from books has nothing for error handling, like the try..catch.
Is there any book/blog/sample code that goes into depth about writing error handling code on ObjC?
I'm not talking about running / debugging, I'm talking about runtime errors that are caught before the stack trace system dump gets it.
I really hope this doesn't involve putting C++ code around each and every ObjC routine.
Example: I have a line of code that crashes, it doesn't get run until certain conditions. Those conditions are met at runtime, I catch the error, do something to save the app from crashing if I can, then return to program or allow to continue crashing.
I used to write a universal error handling code set that would catch all catchable errors and records information before the program would crash.
This was with a error handler that was built into the API. In VB/C++/C# apps you would do this with a try... catch... throw and you could then send all the info you needed to your custom error handler function.
So far, I haven't seen anything like this in ObjC. In fact all the code I'm doing now from books has nothing for error handling, like the try..catch.
Is there any book/blog/sample code that goes into depth about writing error handling code on ObjC?
I'm not talking about running / debugging, I'm talking about runtime errors that are caught before the stack trace system dump gets it.
I really hope this doesn't involve putting C++ code around each and every ObjC routine.
Example: I have a line of code that crashes, it doesn't get run until certain conditions. Those conditions are met at runtime, I catch the error, do something to save the app from crashing if I can, then return to program or allow to continue crashing.