How to catch exceptions occured while TOraQuery.Execute?
Posted: Fri 02 Sep 2005 12:30
hi there,
i wrote a daemon using the toraquery class to insert data in a database. if the database goes down or the session dies for some reason i want to catch the EOraError Exceptions.
code is similar to:
try
toraquery.Execute;
Except on EOraError do begin
do some error handling
end;
i can see that an execption occurs in the delphi debugger when i kill the oracle session, but for any reason the exception is not raised and no error handling is done. can you suggest any way to catch the exception?
thx and br, klaus eckhardt.
i wrote a daemon using the toraquery class to insert data in a database. if the database goes down or the session dies for some reason i want to catch the EOraError Exceptions.
code is similar to:
try
toraquery.Execute;
Except on EOraError do begin
do some error handling
end;
i can see that an execption occurs in the delphi debugger when i kill the oracle session, but for any reason the exception is not raised and no error handling is done. can you suggest any way to catch the exception?
thx and br, klaus eckhardt.