> + */
> +public class GlacierResponseException extends HttpResponseException {
> +
> +   private static final long serialVersionUID = 1L;
> +   private final GlacierError error;
> +
> +   public GlacierResponseException(String message, HttpCommand command, 
> HttpResponse response, GlacierError error,
> +         Throwable cause) {
> +      super(message, command, response, cause);
> +      this.error = checkNotNull(error, "error");
> +   }
> +
> +   public GlacierResponseException(HttpCommand command, HttpResponse 
> response, GlacierError error, Throwable cause) {
> +      super("request " + command.getCurrentRequest().getRequestLine() + " 
> failed with code " + response.getStatusCode()
> +            + ", error: " + error.toString(), command, response, cause);
> +      this.error = checkNotNull(error, "error");

Just call `this("request....", command, response, error, cause);` instead?

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

Reply via email to