Page 1 of 1

EMyError not declared

Posted: Wed 04 Feb 2015 21:59
by bluscape
I'm trying to catch EMyError but get an error:

E2003 Undeclared identifier: 'EMyError'

When I try and add MyClasses to the uses clause I get an error:

F1026 File not found: 'MyClasses.dcu'

Which unit should I include to define EMyError?

Re: EMyError not declared

Posted: Thu 05 Feb 2015 09:48
by ViktorV
To fix the "File not found" error, write the paths to the directories "%MyDAC%\Lib" and "%MyDAC%\Bin" in the "Library path" via the Tools->Environment Options->Delphi Options->Library menu. %MyDAC% is the MyDAC installation path on your computer.

Re: EMyError not declared

Posted: Fri 06 Feb 2015 08:34
by bluscape
I'm not using MyDAC, I'm using Delphi dbExpress with the Devart MySQL driver.
So I have:

%MySQL\Lib\Delphi15
%MySQL\Bin\Delphi15

Re: EMyError not declared

Posted: Fri 06 Feb 2015 10:17
by ViktorV
EMyError is the internal driver exception. It is raised and then catched inside the driver. Therefore you can't catch such errors.