| 1 | #import <Foundation/Foundation.h> |
|---|---|
| 2 | |
| 3 | int main(int argc, char const *argv[]) { |
| 4 | @try { |
| 5 | NSException *e = [[NSException alloc] initWithName:@"ThrownException" |
| 6 | reason:@"SomeReason" |
| 7 | userInfo:nil]; |
| 8 | @throw e; |
| 9 | } @catch (NSException *e) { |
| 10 | NSLog(@"Caught %@", e); |
| 11 | @throw; // let the process crash... |
| 12 | } |
| 13 | return 0; |
| 14 | } |
| 15 |
