EMySQLException / EMyError

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
r.bruinsma
Posts: 2
Joined: Wed 28 Mar 2007 16:00

EMySQLException / EMyError

Post by r.bruinsma » Wed 12 Mar 2008 14:19

I'm trying to create a robust exception handler when connection with TMyConnection, but I don't understand the structure of the errormessages.

I see a Delphi EMySQLException. To handle this I added MySQLErrors to my uses list. But then in the try..except handler I find out that the classname of the exception is EMyError. But when I try to catch a EMyError, I get a 'Undeclared identifier: EMyError'.

How do I catch the EMySQLException?

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Thu 13 Mar 2008 16:07

The EMySQLException exception class is an internal exception of MyDAC. It is handled by MyDAC and can not be caught by error handlers of your application.

EMyError is declarated in the MyClasses unit.

Post Reply