> @@ -69,6 +70,12 @@ public void handleError(HttpCommand command, HttpResponse 
> response) {
>                 if (command.getCurrentRequest().getMethod().equals("POST")) {
>                    if 
> (command.getCurrentRequest().getEndpoint().getPath().endsWith("/engines")) {
>                       exception = new HttpResponseException("Connection 
> refused registering docker daemon", command, response);
> +                  } else if 
> (command.getCurrentRequest().getEndpoint().getPath().endsWith("/containers")) 
> {
> +                     exception = new HttpResponseException(command, 
> response, message);
> +                  }
> +               } else if 
> (command.getCurrentRequest().getMethod().equals("DELETE")) {
> +                  if 
> (command.getCurrentRequest().getEndpoint().getPath().endsWith("/servicekeys"))
>  {
> +                     exception = new ResourceNotFoundException(message, new 
> HttpResponseException(command, response, message));

Is this `ResourceNotFoundException` the only possible error here, or should we 
inspect the response message to know when to throw the RNFE or the default one?

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

Reply via email to