• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Exception handling: confused by syntax
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Exception handling: confused by syntax
      • From: Mario Diana <email@hidden>
References: 
 >Exception handling: confused by syntax (From: Mario Diana <email@hidden>)

  • Prev by Date: Re: Exception handling: confused by syntax
  • Next by Date: Re: No regions, reason for Cocoa's inefficient window resizing?
  • Previous by thread: Exception handling: confused by syntax
  • Next by thread: Re: Exception handling: confused by syntax
  • Index(es):
    • Date
    • Thread