Re: Ignored exceptions...
Re: Ignored exceptions...
- Subject: Re: Ignored exceptions...
- From: Matt Neuburg <email@hidden>
- Date: Wed, 17 Oct 2007 16:30:30 -0700
- Thread-topic: Ignored exceptions...
On Wed, 17 Oct 2007 11:14:13 -0500, Gerd Knops <email@hidden>
said:
>I am trying to add an exception handling to my application that
>catches uncaught exceptions.
>
>Problem is there seems to be exception handling within cocoa 'under'
>the top level, that causes exceptions to be ignored.
>
>If I add a delegate to the defaultExceptionHandler and
>setExceptionHandlingMask:NSLogAndHandleEveryExceptionMask, I can
>intercept all exceptions, but that includes exceptions that are
>specifically handled in my code, so that is not what I want.
>
>But if I set the mask to anything less (eg
>NSHandleUncaughtExceptionMask|NSHandleUncaughtSystemExceptionMask|
>NSHandleUncaughtRuntimeErrorMask|NSHandleTopLevelExceptionMask) many
>exceptions never reach me, they just are logged with something like
>
> Exception raised during posting of notification. Ignored.
>exception: (my exception here)
>
>How can I get Cocoa to NOT ignore those exceptions so that they reach
>the top-level handler?
http://www.cocoabuilder.com/archive/message/cocoa/2004/2/10/96562
m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
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