You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by ga...@apache.org on 2014/05/31 01:40:54 UTC

[2/2] git commit: Removed some unused constructors from GlacierResponseException

Removed some unused constructors from GlacierResponseException


Project: http://git-wip-us.apache.org/repos/asf/jclouds-labs-aws/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds-labs-aws/commit/4c52e96b
Tree: http://git-wip-us.apache.org/repos/asf/jclouds-labs-aws/tree/4c52e96b
Diff: http://git-wip-us.apache.org/repos/asf/jclouds-labs-aws/diff/4c52e96b

Branch: refs/heads/master
Commit: 4c52e96b4bc2e9954fde976ba26bc61ccf71024c
Parents: a144c2f
Author: Roman C. Coedo <ro...@gmail.com>
Authored: Fri May 30 22:54:20 2014 +0200
Committer: Andrew Gaul <ga...@apache.org>
Committed: Fri May 30 16:33:13 2014 -0700

----------------------------------------------------------------------
 .../glacier/GlacierResponseException.java        | 19 +++----------------
 1 file changed, 3 insertions(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jclouds-labs-aws/blob/4c52e96b/glacier/src/main/java/org/jclouds/glacier/GlacierResponseException.java
----------------------------------------------------------------------
diff --git a/glacier/src/main/java/org/jclouds/glacier/GlacierResponseException.java b/glacier/src/main/java/org/jclouds/glacier/GlacierResponseException.java
index 978d973..67c01a5 100644
--- a/glacier/src/main/java/org/jclouds/glacier/GlacierResponseException.java
+++ b/glacier/src/main/java/org/jclouds/glacier/GlacierResponseException.java
@@ -33,23 +33,10 @@ 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) {
-      this("request " + command.getCurrentRequest().getRequestLine() + " failed with code " + response.getStatusCode()
-            + ", error: " + error.toString(), command, response, error, cause);
-   }
-
    public GlacierResponseException(HttpCommand command, HttpResponse response, GlacierError error) {
-      this(command, response, error, null);
-   }
-
-   public GlacierResponseException(String message, HttpCommand command, HttpResponse response, GlacierError error) {
-      this(message, command, response, error, null);
+      super("request " + command.getCurrentRequest().getRequestLine() + " failed with code " + response.getStatusCode()
+            + ", error: " + error.toString(), command, response);
+      this.error = checkNotNull(error, "error");
    }
 
    public GlacierError getError() {