Using Laz 1.0.4 & FPC 2.6.0 on WinXP.
I want to catch an exception like this:
try
MySQL51Connection1.Connected := True;
except
On E: EDatabaseError do
begin
ShowMessage('Could not connect to database');
Close;
end;
end;
but I get the following message:
main.pas(53,11) Error: Identifier not found "EDatabaseError"
main.pas(53,26) Error: class type expected, but got "<erroneous type>"
main.pas(69) Fatal: There were 2 errors compiling module, stopping
Where is EDatabaseError defined? Is there a package/unit I need to include to make it work?
Thanks in advance.
Edward Hooper