EDAError restoring

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
yota
Posts: 10
Joined: Thu 19 Nov 2009 10:42
Location: Poland

EDAError restoring

Post by yota » Sat 18 Sep 2010 16:11

Code: Select all

try
   DM.IBCRestoreService1.ServiceStart;
   while DM.IBCRestoreService1.IsServiceRunning do begin
      Application.ProcessMessages;
   end;
except
    on E: EDAError do begin
     // catch me 
    end;
end;
I've got the same error codes when the backup file doesn't exist and the same when database is in use. How can I know which exception is raised?

AndreyZ

Post by AndreyZ » Mon 20 Sep 2010 09:56

Hello,

These errors are created by the InterBase server and InterBase Service's API, and IBDAC doesn't change them.

yota
Posts: 10
Joined: Thu 19 Nov 2009 10:42
Location: Poland

GDSCODE or SYMBOL?

Post by yota » Mon 20 Sep 2010 14:48

Thanks, I understand. What about GDSCODE or SYMBOL of an error code? Can I somehow retrieve them from EDAError?

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Wed 22 Sep 2010 11:21

You can use the following properties of the EIBCError class:
SQLErrorMsg - holds the error message describing the part of the SQL code that caused the error.
ErrorNumber - determines the error number returned by InterBase.
ErrorCode - determines the error code returned by InterBase.

Post Reply