validationFailedWithException not being called
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