}
private void checkForVersionMismatch() {
double serverVersionNumber = getServerVersion();
if (serverVersionNumber == NO_SLIM_SERVER_CONNECTION_FLAG) {
throw new SlimError("Slim Protocol Version Error: Server did not respond with a valid version number.");
}
else if (serverVersionNumber < requiredSlimVersion) {
throw new SlimError(String.format("Slim Protocol Version Error: Expected V%s but was V%s", requiredSlimVersion, serverVersionNumber));
}
}