How to handle the Session.OnError
Posted: Thu 08 Dec 2005 10:10
I'm trying to handle the connection errors on my program. I wrote this code in OraSession1.OnError:
ShowMessage('Connection Error. Program will close.');
Application.Terminate;
But this event is also fired when there are other errors, like bad queries, field not found, etc..
Is there a better way to handle connection problems?
I tried to check E.Errorcode but there is nothing in the help about the error codes.
ShowMessage('Connection Error. Program will close.');
Application.Terminate;
But this event is also fired when there are other errors, like bad queries, field not found, etc..
Is there a better way to handle connection problems?
I tried to check E.Errorcode but there is nothing in the help about the error codes.