Try Catch

iPhone SDK Tips & Tricks

@try {
[self doSomethingFancy];
}
@catch (NSException* ex) {
NSLog(@"doSomethingFancy failed: %@",ex);
}