Subject Re: [IBO] Catching an exception
Author Jason Wharton
There is a OnHandleException() event associated with the TApplication
object. You can put a handler in there that examines if it is an InterBase
error and you can respond appropriately.

Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com

-- We may not have it all together --
-- But together we have it all --


----- Original Message -----
From: "Gerhardus Geldenhuis" <gerhardus@...>
To: <IBObjects@yahoogroups.com>
Sent: Thursday, September 19, 2002 11:48 PM
Subject: RE: [IBO] Catching an exception


> Ok
> I would go with your recomendation, I would like to know why if you dont
> mind, I suspect that if the end program handles the exception it does not
> get handled properly.
>
> Could you suggest a other way for me to catch primarykey errors and other
> and respond to it. My aim is to have one central procedure for all by
> queries that respond to primary key problems. If that is not posible must
I
> put every
> dataset.insert into a try except statement?
>
> Groete
> Gerhardus
>
> >
> > It should remain in Edit state if it is an exception during the post.
> > I strongly discourage doing anything in the OnError event with SQL
> > components.