• 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
EC delegate editingContextShouldPresentException question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: [JavaClient] EODistributionContext fun
  • Next by Date: Re: Practical Webobjects Utilities Framework
  • Previous by thread: [JavaClient] EODistributionContext fun
  • Next by thread: Re: Best Java GUI Builder
  • Index(es):
    • Date
    • Thread