catch(IOException e){
log.warn("Error connecting to '" + server + "': " + e.getMessage());
}
}
if (!connected) {
throw new ConnectionException("Could not connect to any server. See log warnings for detail.");
}
System.out.format("Connected to '%s'\n", this.server);
}