Ignored exceptions...
Ignored exceptions...
- Subject: Ignored exceptions...
- From: Gerd Knops <email@hidden>
- Date: Wed, 17 Oct 2007 11:14:13 -0500
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?
Thanks
Gerd
_______________________________________________
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