• 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: Exception not being caught
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Exception not being caught


  • Subject: Re: Exception not being caught
  • From: "email@hidden" <email@hidden>
  • Date: Mon, 21 Mar 2011 09:50:11 +0000

On 21 Mar 2011, at 04:11, Rick Mann wrote:

>> Can you give us the exception report?
>> Is it an NSException instance?
>
> Yes. It is raised by this line of code:
>
>    [NSException raise:NSInvalidArchiveOperationException format:@"Network error domain:%@ code:%d", [requestError domain], [requestError code]];
As you are raising the exception then you could try raising the exception experimentally when the operation starts to help source the problem.
You mentioned break points earlier. What happens when the code runs outside of the development environment.

>
>> This might indicate that your exception is not occurring on your main thread.
>
> It is most certainly NOT occurring on the main thread. Never said it was (in fact, I figured the bit about NSOperation would imply it was not).
>
Now we know.
Have you tried using NSExceptionHandler? It might provide some insight.

If the problem persists you could post more code.

If it's a fundamental issue it should be demonstrable in a short test project.

Regards

Jonathan Mitchell

Developer
Mugginsoft LLP
http://www.mugginsoft.com


_______________________________________________

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: Exception not being caught
      • From: Rick Mann <email@hidden>
References: 
 >Exception not being caught (From: Rick Mann <email@hidden>)
 >Re: Exception not being caught (From: "email@hidden" <email@hidden>)
 >Re: Exception not being caught (From: Rick Mann <email@hidden>)

  • Prev by Date: UITabBarController calls viewDidAppear
  • Next by Date: UIWebView HTML to match UITextView
  • Previous by thread: Re: Exception not being caught
  • Next by thread: Re: Exception not being caught
  • Index(es):
    • Date
    • Thread