Re: Exception handling: confused by syntax
Re: Exception handling: confused by syntax
- Subject: Re: Exception handling: confused by syntax
- From: Nathan Day <email@hidden>
- Date: Fri, 13 Sep 2002 23:58:17 +0930
- (void) myMethod
{
NS_DURING
// do the thing...
NS_HANDLER
if ([[localException name] isEqualToString:
NSInvalidArgumentException])
{
// handle the error...
}
else
{
[localException raise];
}
NS_ENDHANDLER
}
On Friday, September 13, 2002, at 10:55 PM, Mario Diana wrote:
public void myMethod() {
try {
// do the thing...
}
catch (NSInvalidArgumentException iae) {
// handle the error...
}
}
Nathan Day
http://homepage.mac.com/nathan_day/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.