Removed some unused constructors from GlacierResponseException

This commit is contained in:
Roman C. Coedo 2014-05-30 22:54:20 +02:00 committed by Andrew Gaul
parent 7add71bf4c
commit eb13a0a209
1 changed files with 3 additions and 16 deletions

View File

@ -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() {