• 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: No Warning on compilation time with a forgeted @try and @catch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No Warning on compilation time with a forgeted @try and @catch


  • Subject: Re: No Warning on compilation time with a forgeted @try and @catch
  • From: Chris Hanson <email@hidden>
  • Date: Mon, 18 Oct 2004 20:21:36 -0700

On Oct 18, 2004, at 10:56 AM, mabo68 wrote:
If I use a @throw in a method, his calling method need to have a @try an @catch.

Not necessarily. Some method higher in the call stack should have a @catch block to handle the exception.

But if I forget to implement the @try and @catch, the compiler doen't informe me that I have expected a @try and @catch.

That's correct. Objective-C doesn't have declared exceptions like (say) Java.

-- Chris

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >No Warning on compilation time with a forgeted @try and @catch (From: mabo68 <email@hidden>)

  • Prev by Date: NSPopUpCell/NSTableView/Bindings via code
  • Next by Date: Re: Obtaining the size of a directory
  • Previous by thread: No Warning on compilation time with a forgeted @try and @catch
  • Next by thread: Problem with -[NSKeyedArchiver setClassName:forClass:]
  • Index(es):
    • Date
    • Thread