> +            exception = new IllegalStateException(message, exception);
> +            break;
> +         }
> +      } finally {
> +         Closeables.closeQuietly(response.getPayload());
> +         command.setException(exception);
> +      }
> +   }
> +
> +   public String parseMessage(HttpResponse response) {
> +      if (response.getPayload() == null)
> +         return null;
> +      try {
> +         return Strings2.toString(response.getPayload());
> +      } catch (IOException e) {
> +         throw new RuntimeException(e);

Throwables.propagate?

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

Reply via email to