> +
> +   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,

We can and will do so now. Once the API gets bigger we will have more 
use-cases, but as I've noted elsewhere, we can do this now for simplicities 
sake.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/196/files#r37198886

Reply via email to