Bug 734316 - Part 1: Fix some PMD warnings. r=trivial

This commit is contained in:
Richard Newman
2012-03-08 22:43:16 -08:00
parent 56c96ae86c
commit dd66b1cde0
10 changed files with 6 additions and 22 deletions

View File

@@ -51,11 +51,12 @@ public class HTTPFailureException extends SyncException {
@Override
public String toString() {
String errorMessage = "[unknown error message]";
String errorMessage;
try {
errorMessage = this.response.getErrorMessage();
} catch (Exception e) {
// Oh well.
errorMessage = "[unknown error message]";
}
return "<HTTPFailureException " + this.response.getStatusCode() +
" :: (" + errorMessage + ")>";