• 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
Re: Ignored exceptions...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Ignored exceptions...
      • From: Gerd Knops <email@hidden>
  • Prev by Date: Resizing NSWindows and NSViews with NSViewAnimation
  • Next by Date: Re: Ignored exceptions...
  • Previous by thread: Ignored exceptions...
  • Next by thread: Re: Ignored exceptions...
  • Index(es):
    • Date
    • Thread