B4J Question JRDC2: How to get Client app to trap timeout errors from server?

Diceman

Active Member
Licensed User
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
Where does this message come from? What code do you use to log that message?

Edit: Which JRDC2 version are you using?
 
Upvote 0

Diceman

Active Member
Licensed User
Where does this message come from? What code do you use to log that message?

Edit: Which JRDC2 version are you using?

My bad. :oops:
Problem solved. I had a XUI.MsgBoxAsync squirreled away in a client sub that displayed the exception message. Sorry for the confusion.
 
Upvote 0
Top