// If the retry fails, it will throw its own exception
throw new EmsConnectException(t);
} else if (t instanceof java.io.IOException) {
throw new EmsConnectException(t);
} else if (t instanceof NotSerializableException) {
throw new EmsUnsupportedTypeException("Value was not serializable " + t.getLocalizedMessage(),t);
} else {
throw new EmsConnectException("Connection failure " + t.getLocalizedMessage(), t);
}
} else {
throw e;