• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Ignored exceptions...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Kludges when binding to 'value' of Menu Items
  • Next by Date: Re: TableView not loading completely
  • Previous by thread: Re: CIImage <-> bitmap data <-> NSImage
  • Next by thread: Re: Ignored exceptions...
  • Index(es):
    • Date
    • Thread