Exception Handling

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
[email protected]
Posts: 17
Joined: Sat 02 May 2009 11:20

Exception Handling

Post by [email protected] » Sat 02 May 2009 11:32

:?: How does UniDac support exception handling. As an example, if I am updating a database and I get a 'record locked' error, does UNIDAC capture the native database engine error and subsequently raise it's own set of exceptions OR do I need to handle exceptions for each database engine independantly of UniDac. :?:

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Tue 05 May 2009 07:05

UniDAC catches the native provider exception, and raises the EUniError exception. You should handle only this exception in your code.

[email protected]
Posts: 17
Joined: Sat 02 May 2009 11:20

Post by [email protected] » Tue 05 May 2009 16:22

:D Thank you. This is exactly what I had hoped for.

Robert

Post Reply