I have a bunch of C functions in my Objective-C project iOS app, that can potentially crash. I want to be able to handle those crashed. At first, I thought to use @try-catch mechanism, but as far as I understand, all exceptions inside this block must be thrown to be handled. Is it true? How can I solve my problem?
For example, this is a call of a C function in Objective-C code. Potentially this function can crush.
err = mailimap_list(session, "", "*", &allList);
err--namely, check that it is notMAILIMAP_NO_ERROR. Is this what you're referring to?