Code example for SocketException

Methods: getMessage

0
				client.authenticate(_username, _password);
				client.group(_group);
				returns = client.getReplyString();	
			} catch (SocketException e) {
				// TODO Auto-generated catch block 
				Log.e("get",e.getMessage());
			} catch (IOException e) {
				// TODO Auto-generated catch block 
				Log.e("get",e.getMessage());
			} catch (Exception e) {
				// TODO Auto-generated catch block 
				Log.e("get",e.toString());
			} 
				  
			if(returns!=null){
				String[] codes = returns.split(" ");
				long count = Long.parseLong(codes[3]);
				return count;
			} 
			return -1; 
		}