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:
adrian.f.cole 2009-06-07 06:51:42 +00:00
parent d8eb1a71d2
commit 6e56a0fd22
1 changed files with 4 additions and 2 deletions

View File

@ -44,14 +44,16 @@ public class AWSResponseException extends HttpResponseException {
private AWSError error = new AWSError(); private AWSError error = new AWSError();
public AWSResponseException(HttpFutureCommand<?> command, HttpResponse response, AWSError error) { 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); this.setError(error);
} }
public AWSResponseException(HttpFutureCommand<?> command, HttpResponse response, AWSError error, public AWSResponseException(HttpFutureCommand<?> command, HttpResponse response, AWSError error,
Throwable cause) { 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); this.setError(error);
} }