Hello,
I'm connecting to Postgres 8.4 database which sometimes is unavailable. I've no problem with servicing such a situation with 'try ... .finally' however I'm unable to find TZConection's property which hold potential error number or error message (like pg_last_error or pg_result_error in PHP). Where shoudl I search?
regards,
Cezar
Error code/error message from TZConnection with Postgres
Moderators: gto, cipto_kh, EgonHugeist, olehs
-
- Expert Boarder
- Posts: 164
- Joined: 18.03.2008, 13:03
- Contact:
Hello ccezar,
You should use try... except instead of try finally
Good luck
You should use try... except instead of try finally
Code: Select all
try
ZConnection1.Connect;
except
On E:Exception do
Begin
ShowMessage(E.Message);
End;
end;