}
catch (Throwable th)
{
if (timeout != null && (th.getCause() instanceof SocketTimeoutException))
{
throw new WSTimeoutException("Timeout after: " + timeout + "ms", new Long(timeout.toString()));
}
IOException io = new IOException("Could not transmit message");
io.initCause(th);
throw io;