I am creating static ios library, and want to throw system generated exception as well as custom exception with code and message to user on request failure.
User will import my header files and .a file and call static library methods.
Can somebody tell me what is the easiest and generalize way to handle exception or create own exception and throw back to user, So that user will take specific action by getting code and message.
I have go over the following links, but want to create custom NSError class or NSException class so that i can add my own error code and message, So little bit confused what to do,
How to create custom exception in objective c?
Exception handling in entire application
Please help.
Thanks & Regards,