> + > + public void handleError(HttpCommand command, HttpResponse response) { > + > + String message = parseMessage(response); > + Exception exception = null; > + try { > + > + message = message != null ? message > + : String.format("%s -> %s", > command.getCurrentRequest().getRequestLine(), response.getStatusLine()); > + > + switch (response.getStatusCode()) { > + case 404: > + if (command.getCurrentRequest().getMethod().equals("DELETE")) > { > + if > (command.getCurrentRequest().getEndpoint().getPath().startsWith( > + "/" + EtcdApiMetadata.API_VERSION + "/members") && > message.contains("No such member")) { > + exception = new ResourceNotFoundException(message,
Can't we safely throw a RNFE on every 404, without checking the method and path? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/196/files#r36680707