ios - How to subclass NSException and use in a better way? -
this question has answer here:
i subclass nsexception , use in app application specific errors or exceptions.
is right way so? if yes, how in better way. if no, why not right way , whats alternate it?.
please guide me !
thanks.
do not use exceptions recoverable errors.
so, yes, there better way. exceptions should used fatal errors. other kinds of error handling done via nserror** pattern.
codafi's answer (is practice subclass nsexception app-specific exceptions?) has more details.
Comments
Post a Comment