Anonymous user
Exceptions: Difference between revisions
→Catching exceptions
(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) {
|