Re: My try/catch block isn't catching exceptions on 10.6
Re: My try/catch block isn't catching exceptions on 10.6
- Subject: Re: My try/catch block isn't catching exceptions on 10.6
- From: Matt Gough <email@hidden>
- Date: Fri, 27 Nov 2009 09:14:01 +0000
On 27 Nov 2009, at 01:08:28, Graham Cox wrote:
> Does Objective C support multiple catch blocks, like C++? In other words you could do:
>
> @try
> {
> ...
> }
> @catch( NSException* e)
> {
> // deal with NSException
> }
> @catch(...)
> {
> // deal with any other sort of exception
> }
The equivalent in Obj-c would be :
@try
{
...
}
@catch( NSException* e)
{
// deal with NSException
}
@catch(id ue)
{
// deal with any other sort of exception
}
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden