Hi all,

I am not sure I understand the functionality of the EOEditingContext.Delegate's editingContextShouldPresentException method. The JavaDoc says:

"Sent whenever an exception is caught by an EOEditingContext..."

Uhm, caught by the EOEditingContext? When I first read the method name, I assumed it would allow me to deal with validation exceptions, as well as other exceptions that an EC might throw at any given moment. However, doing some testing, when I provide invalid values to the EC, and ask it to save changes, the two other Delegate methods get called (editingContextShouldValidateChanges and editingContextWillSaveChanges), but the editingContextShouldPresentException does not...

So, does this method get called only when there is an exception in the, for example, database context? And if so, is there a way, short of subclassing EOEditingContext, to intercept validation exceptions occurring on saveChanges()?

Thanks,
F
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to