in folsom/src/main/java/com/spotify/folsom/client/ascii/IncrRequest.java [68:81]
public void handle(final AsciiResponse response, final HostAndPort server) throws IOException {
if (response instanceof NumericAsciiResponse) {
succeed(((NumericAsciiResponse) response).numericValue);
} else if (response.type == Type.NOT_FOUND) {
succeed(null);
} else if (response.type == AsciiResponse.Type.CLIENT_ERROR) {
MemcacheAuthenticationException exception =
new MemcacheAuthenticationException(
"Authentication required by server. Client not authenticated.");
fail(exception, server);
} else {
throw new IOException("Unexpected response type: " + response.type);
}
}