Code example for SocketException

Methods: getMessageprintStackTrace