Created by: ghost
UnresolvedAddressException is a subclass of IllegalArgumentException, not a subclass of IOException, which is why you won't catch it if it's thrown. http://docs.oracle.com/javase/7/docs/api/java/nio/channels/UnresolvedAddressException.html