Diceman Active Member Licensed User Sep 20, 2018 #1 I am using JRDC2 and when I make a call to the server, I want my client program to be able to trap a timeout error from the server. The message "ERROR: java.net.SocketTimeOutException: Read time out" is not going to mean a lot to the end user and I want to handle it myself. How do I do this in the client app? I thought I could wrap a Try/Catch block around the "wait for dbrequestmanager.executequerycustommethod(...)" but that didn't catch it. Then I thought it would be caught in the Application_Error sub. Nope. Do I put a Try/Catch in the DbRequestmanager.SendJob sub? Where are we suppose to catch these type of unexpected errors from the server? TIA
I am using JRDC2 and when I make a call to the server, I want my client program to be able to trap a timeout error from the server. The message "ERROR: java.net.SocketTimeOutException: Read time out" is not going to mean a lot to the end user and I want to handle it myself. How do I do this in the client app? I thought I could wrap a Try/Catch block around the "wait for dbrequestmanager.executequerycustommethod(...)" but that didn't catch it. Then I thought it would be caught in the Application_Error sub. Nope. Do I put a Try/Catch in the DbRequestmanager.SendJob sub? Where are we suppose to catch these type of unexpected errors from the server? TIA
OliverA Expert Licensed User Longtime User Sep 20, 2018 #2 Where does this message come from? What code do you use to log that message? Edit: Which JRDC2 version are you using? Upvote 0
Where does this message come from? What code do you use to log that message? Edit: Which JRDC2 version are you using?
Diceman Active Member Licensed User Sep 20, 2018 #3 OliverA said: Where does this message come from? What code do you use to log that message? Edit: Which JRDC2 version are you using? Click to expand... My bad. Problem solved. I had a XUI.MsgBoxAsync squirreled away in a client sub that displayed the exception message. Sorry for the confusion. Upvote 0
OliverA said: Where does this message come from? What code do you use to log that message? Edit: Which JRDC2 version are you using? Click to expand... My bad. Problem solved. I had a XUI.MsgBoxAsync squirreled away in a client sub that displayed the exception message. Sorry for the confusion.