Code example for SocketException

Methods: getMessage, printStackTrace