Re: No Warning on compilation time with a forgeted @try and @catch
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