• 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
Trapping SQLException in D2W
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Trapping SQLException in D2W
      • From: Chuck Hill <email@hidden>
  • Prev by Date: WebOjects Apache Adaptor for 16 Servers+
  • Next by Date: Re: WebOjects Apache Adaptor for 16 Servers+
  • Previous by thread: Re: WebOjects Apache Adaptor for 16 Servers+
  • Next by thread: Re: Trapping SQLException in D2W
  • Index(es):
    • Date
    • Thread