try {
SeVersion[] versionList = connection.getVersionList(null);
for (SeVersion v : versionList) {
available.add(v.getName());
}
throw new ArcSdeException("Specified ArcSDE version does not exist: "
+ versionName + ". Available versions are: " + available, cause);
} catch (SeException ignorable) {
// hum... ignore
throw new ArcSdeException("Specified ArcSDE version does not exist: "
+ versionName, cause);
}
} else {
throw cause;
}