Bug 709339 - First mostly functional drop of native Sync. a=mobile
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user