try catch doesn't catch my exception...
try catch doesn't catch my exception...
- Subject: try catch doesn't catch my exception...
- From: Amedeo Mantica <email@hidden>
- Date: Mon, 10 Oct 2005 11:11:54 +0200
Hi, I have the following code
try { System.out.println("!!!!!!!!!!!Saving changes"); ec.saveChanges(); } catch (NSValidation.ValidationException exception) { // caught an exception on save. errorsPresent = true; errorString = (String) exception.key(); System.out.println("Errors present"+errorString); return null; }
ec is my EditiingContext
I got execption in the run log...
[2005-10-10 11:05:04 CEST] <WorkerThread0> Validation failed on an object [null] with keypath = theLocale.nomeCognome and exception: The nomeCognome property of locali is not allowed to be null. !!!!!!!!!!!Saving changes
but the catch code is totally ignored! :(
anyone can help? Thanks |
_______________________________________________
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