1 #import <Foundation/Foundation.h>
3 @interface MyClass : NSObject
10 @implementation MyClass
13 NSException *e = [NSException
14 exceptionWithName:@"JustForTheHeckOfItException"
15 reason:@"I felt like it"
23 int return_value = 55;
26 return_value = [self callMeIThrow];
28 @catch (NSException *e)
40 MyClass *my_class = [[MyClass alloc] init];
42 NSLog (@"I am about to throw.");
44 return_value = [my_class iCatchMyself];