Trapping SQLException in D2W
Trapping SQLException in D2W
- Subject: Trapping SQLException in D2W
- From: Markus Ruggiero <email@hidden>
- Date: Wed, 24 Aug 2011 10:49:48 +0200
Folks,
I have the following requirement: I need a unique constraint on the combination of 2 attributes. As I have learned from some postings about a year back the distinct index in EOModeler does not work (and it surely does not for me). Or should it? This is Oracle 9 and WO54, Eclipse Ganymed and suitable WOLips. So to at least to ensure the integrity of the data I have defined a unique constraint via SQL. But now I get a very ugli looking SQLException. This is functionally ok but for the user not acceptable (understandable).
How can I trap such an Exception during SAVE in a (ER)D2W app and present a nice looking error message (similar to what is shown when some validations fail)?
Thanks a lot and have a nice day
---markus--- _______________________________________________
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