title: How do I catch the SocketTimeoutException
body: <p>Say I have a socket variable called SuperSocket is there any way that I can catch the timeout exception ?</p>
  
  <pre><code>       SuperSocket.setSoTimeout(5000);
  
         catch (SocketTimeoutException e){
          System.out.println("Timeout");
          System.exit(1);
      }
  </code></pre>