blob: c8d6f6f2853e6b69f260a78bed7cb8a5994fc064 [file] [log] [blame]
int main( int argc, const char *argv[] ) {
@try {
[NSException raise:NSInternalInconsistency
format:@"An internal inconsistency was raised"];
}
@catch (NSException *e) {
NSLog(@"Catch");
}
@finally {
NSLog(@"Finally");
}
@throw [NSException exceptionWithName:@"foo" reason:@"bar" userInfo:nil];
NSException *exception = [NSException exceptionWithName: @"HotTeaException"
reason: @"The tea is too hot"
userInfo: nil];
@throw exception;
return 0;
}