mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Use raise instead of @throw.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35108 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0abd6bc5a9
commit
e970570954
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@
|
|||
NSAutoreleasePool *pool = [NSAutoreleasePool new];
|
||||
[@"Hello" stringByAppendingString: @" something to create a autoreleased object"];
|
||||
NSLog(@"Throwing an exception");
|
||||
@throw [NSException exceptionWithName: @"MyFunException" reason: @"it was always meant to happen" userInfo: [NSDictionary dictionary]];
|
||||
[[NSException exceptionWithName: @"MyFunException" reason: @"it was always meant to happen" userInfo: [NSDictionary dictionary]] raise];
|
||||
[pool release]; // Obviously this doesn't get run, but the [NSAutorelease new] at the top causes the problem
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue