OnError - IB/FB

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
progman
Posts: 11
Joined: Tue 19 Feb 2008 10:44

OnError - IB/FB

Post by progman » Wed 18 Jun 2008 08:54

I use FireBird. I see that TUniConnection use SQL Error Codes -803, -104 .... but they no precise for me. If it possible to access in OnError event to full GDSErrorCode ?

Challenger
Devart Team
Posts: 925
Joined: Thu 17 Nov 2005 10:53

Post by Challenger » Wed 18 Jun 2008 10:59

There is a bug with the TUniConnection.OnError event. Now this event receives the internal exception instead of EUniError. We will fix this bug in the next build of UniDAC.
Now you can add IBCErrorUni (UniDAC Pro) or IBCError (UniDAC Std) unit to uses clause and use the following code:

Code: Select all

(E as EIBCError).ErrorNumber
And in the next build you will have to modify this code:

Code: Select all

((E as EUniError).InnerError as EIBCError).ErrorNumber

Post Reply