try catch not working
try catch not working
- Subject: try catch not working
- From: Amedeo Mantica <email@hidden>
- Date: Mon, 13 Jun 2005 19:08:48 +0200
Hi
I have thie piece of cone for inserting ad object from my editing context into the database
try { System.out.println("Saving Object"); ec.saveChanges(); } catch (NSValidation.ValidationException ve) { // caught an exception on save. System.out.println("Errors present"); errorsPresent = true; errorString = (String) ve.key(); return null; }
worked very well, but now with Xcode 2.1 if there are errors in the savechanges routine WO display me the expeption error intead to go to the catch code. Does anyone have suggestion? Thanks
AMEDEO |
_______________________________________________
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