class A { { try { mySocket.receive(p); } catch (SocketTimeoutException e) { throw new TimeoutOccurredException(e); } } }