On Nov 24, 2009, at 12:17 PM, David Avendasora wrote:

Hi all,

I've found a few places where people discuss what the best way to handle GeneralAdapterExceptions triggered by violation of a unique constraint on a given table.

The last I found about it (from May, 2008) was a discussion about using an ERXEC delegate, which in turn would use the DB specific ERXSQLHelper.

Did anyone ever actually implement this?

Yes.

Chuck


We have several places in our code where we are handling the exception in the component, which is a horrible place to put it from a MVC perspective as it makes our components dependent upon our DB's error message (I can hear you screaming from here, Chuck).

I'd really like to do this right, but I think the exact execution is a bit over my head, so I'm hoping someone else has actually gone ahead and did some of it already!

Thanks,

Dave


--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to