How do I catch timeout exception?
3 Answers. You indeed cannot catch it as a SocketTimeoutException. What is possible is to catch the RemoteException, retrieve it’s cause and check if that’s an instanceof SocketTimeoutException.
If you have any question you can ask below or enter what you are looking for!
3 Answers. You indeed cannot catch it as a SocketTimeoutException. What is possible is to catch the RemoteException, retrieve it’s cause and check if that’s an instanceof SocketTimeoutException.