mirror of https://github.com/apache/jclouds.git
added request details to default toString
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1081 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
parent
d8eb1a71d2
commit
6e56a0fd22
|
@ -44,14 +44,16 @@ public class AWSResponseException extends HttpResponseException {
|
|||
private AWSError error = new AWSError();
|
||||
|
||||
public AWSResponseException(HttpFutureCommand<?> command, HttpResponse response, AWSError error) {
|
||||
super(error.toString(), command, response);
|
||||
super(String.format("command %1$s failed with error: %2$s", command.toString(), error
|
||||
.toString()), command, response);
|
||||
this.setError(error);
|
||||
|
||||
}
|
||||
|
||||
public AWSResponseException(HttpFutureCommand<?> command, HttpResponse response, AWSError error,
|
||||
Throwable cause) {
|
||||
super(error.toString(), command, response, cause);
|
||||
super(String.format("command %1$s failed with error: %2$s", command.toString(), error
|
||||
.toString()), command, response, cause);
|
||||
this.setError(error);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue