Exception Handling?

Discussion of open issues, suggestions and bugs regarding PgDAC (PostgreSQL Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
snorkel
Posts: 384
Joined: Tue 08 Aug 2006 15:10
Location: Milwaukee WI USA

Exception Handling?

Post by snorkel » Wed 24 Dec 2008 17:16

Hi,
What is the exception class name that I can use to get advanced error information like the line number char position etc?

snorkel
Posts: 384
Joined: Tue 08 Aug 2006 15:10
Location: Milwaukee WI USA

Post by snorkel » Wed 24 Dec 2008 17:29

Nevermind, answered my own question:


try
pgquery1.SQL.Clear;
pgquery1.SQL.Add('select 1+1 1+1;');
pgquery1.open;

except
on e:epgerror do
begin

showmessage(intTostr(e.Position));
end;
end;

Post Reply