Try Catch
1 2 3 4 5 6 7 8 9 |
@try { <#Code that can potentially throw an exception#> } @catch (NSException *exception) { <#Handle an exception thrown in the @try block#> } @finally { <#Code that gets executed whether or not an exception is thrown#> } |