Code example for SocketTimeoutException

Methods: getMessage

0
            if (SingleStat.class.isInstance(tempObject)){
                publishProgress((SingleStat)tempObject);
            } 
 
        } catch (SocketTimeoutException e){
            publishProgress(new SingleStat(-1, "Server unreacheble: "+e.getMessage() ));
            return null; 
 
        } catch (IOException e) {
            publishProgress(new SingleStat(-1, "Server unreacheble: "+e.getMessage() ));
            socket = null;
            oos = null;
            return null; 
 
        } catch (ClassNotFoundException e){
            publishProgress(new SingleStat(-1, "Server is crazy: "+e.getMessage() ));
            return null; 
        } 
        finally { 
            try { 
                socket.close();