• 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
validationFailedWithException not being called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

validationFailedWithException not being called


  • Subject: validationFailedWithException not being called
  • From: Janine Sisk <email@hidden>
  • Date: Thu, 7 Jun 2007 13:43:57 -0700

I'm totally stumped by this.  Here's the scenario:

The user chooses a file to upload that we can't handle. They hit the submit button. My saveChanges method runs, which runs the built-in one, which validates all the attributes in my model.

My validateBigImage method runs, which checks the image and sees that it's the wrong kind, so it throws an NSValidation.ValidationException. This would, one would think, cause validationFailedWithException to run, but it doesn't.

Why not, and/or how do I figure out what's going on? I figured out how to use the debugger, set a breakpoint on the line where I throw my exception, and followed it the rest of the way through. Other than verifying that it never goes in to validationFailedWithException, which I already knew, it didn't tell me much.

thanks,

janine

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: validationFailedWithException not being called
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re:WWDC Meeting
  • Next by Date: Re: validationFailedWithException not being called
  • Previous by thread: WWDC WebObjects Event
  • Next by thread: Re: validationFailedWithException not being called
  • Index(es):
    • Date
    • Thread