> +   @Resource
> +   protected Logger logger = Logger.NULL;
> +
> +   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());
> +         exception = new HttpResponseException(message, command, response);
> +
> +      } catch (Exception e) {
> +         exception = new HttpResponseException(command, response, e);
> +      } finally {
> +         if (exception == null) {

At this point the exception will never be null.

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

Reply via email to