Page 1 of 1

EMySQLException / EMyError

Posted: Wed 12 Mar 2008 14:19
by r.bruinsma
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?

Posted: Thu 13 Mar 2008 16:07
by Antaeus
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.