You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
469 B
Plaintext
25 lines
469 B
Plaintext
#import "ModTest.h"
|
|
|
|
#import "minRep2.h"
|
|
#import "MyException.h"
|
|
|
|
#import "stdio.h"
|
|
|
|
@implementation MinRep2
|
|
|
|
- (void)poke {
|
|
@try {
|
|
printf("Raising MyException\n");
|
|
MyException *e = [MyException new];
|
|
@throw e;
|
|
} @catch (MyException *localException) {
|
|
printf("Caught - re-raising\n");
|
|
[localException retain];
|
|
[[localException autorelease] raise];
|
|
} @catch(...) {
|
|
printf("Caught in general block\n");
|
|
}
|
|
}
|
|
|
|
@end
|