Throwing NSException in custom linked framework?
Throwing NSException in custom linked framework?
- Subject: Throwing NSException in custom linked framework?
- From: Robert Mullen <email@hidden>
- Date: Tue, 18 Aug 2009 20:56:00 -0700
I am building a data access layer in a Cocoa Framework and calling it
from a test harness. All is working well until I get to my error
trapping. I throw an NSException from a called method in the Framework
and the caller has a @try-@catch=@finally block but it is not getting
triggered. I see objc_exception_throw at the top of the stack but do
not trigger my catch block. Is it valid to throw an NSException in
this way? I don't see anywhere in the docs where it says I can't but
maybe I have read too fast? I don't necessarily want code help just
confirmation that this should work. If so I obviously am doing
something wrong. This is my first real framework so that would not be
a surprise.
TIA
_______________________________________________
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