EC delegate editingContextShouldPresentException question
EC delegate editingContextShouldPresentException question
- Subject: EC delegate editingContextShouldPresentException question
- From: Florijan Stamenkovic <email@hidden>
- Date: Sat, 21 Jun 2008 13:37:29 -0400
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden