Bug 709339 - First mostly functional drop of native Sync. a=mobile

This commit is contained in:
Richard Newman
2012-01-14 09:20:31 -08:00
parent 83e8e5d5ed
commit 5fe8ffe843
89 changed files with 5497 additions and 2295 deletions

View File

@@ -49,6 +49,18 @@ public class HTTPFailureException extends SyncException {
this.response = response;
}
@Override
public String toString() {
String errorMessage = "[unknown error message]";
try {
errorMessage = this.response.getErrorMessage();
} catch (Exception e) {
// Oh well.
}
return "<HTTPFailureException " + this.response.getStatusCode() +
" :: (" + errorMessage + ")>";
}
@Override
public void updateStats(GlobalSession globalSession, SyncResult syncResult) {
switch (response.getStatusCode()) {