April 05
Prof. Ismael H. F. Santos -  ismael@tecgraf.puc-rio.br                                                          2
Socket Exceptions
ntry {
n Socket client = new Socket(host, port); handleConnection(client);
n}
ncatch(UnknownHostException uhe) { System.out.println("Unknown host: " + host); uhe.printStackTrace();
n}
ncatch(IOException ioe) {
nSystem.out.println("IOException: " + ioe); ioe.printStackTrace();
n}