What is difference between Exception and Error in iOS?.
1905
10-Jan-2017
Updated on 23-Sep-2020
Sunil Singh
10-Jan-2017Exception is programmer-level bug for example trying to access array index that not exist in array. In iOS Exception base class are NSException. Error is user- level bug such as trying to load a file that does not exist .Error indicate problem that a reasonable application should not try to catch. Error are represented by NSError Class.