Page 1 of 1

Exception Handling?

Posted: Wed 24 Dec 2008 17:16
by snorkel
Hi,
What is the exception class name that I can use to get advanced error information like the line number char position etc?

Posted: Wed 24 Dec 2008 17:29
by snorkel
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;