Exceptions: Difference between revisions

(added objective-c)
Line 726:
@catch (NSException *exc) {
//Catch any NSException or subclass
NSLog(@"caught named %@, with reason: %@", [exc name], [exc reason]);
}
@catch (id exc) {
Anonymous user