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.
How to handle the Session.OnError
-
- Devart Team
- Posts: 925
- Joined: Thu 17 Nov 2005 10:53
-
- Devart Team
- Posts: 925
- Joined: Thu 17 Nov 2005 10:53