Show readable error string

This commit is contained in:
seven332 committed 2015-05-16 14:11:28 +08:00
1 parent 0489ef2c39
commit 7b21001af0
6 files changed
+107 -20

No files matched your search

@@ -65,6 +65,14 @@ public class ResponseCodeException extends Exception {
mMessage = message;
}
public int getResponseCode() {
return mResponseCode;
}
public boolean isIdentifiedResponseCode() {
return !DEFAULT_ERROR_MESSAGE.equals(mMessage);
}
@Override
public String getMessage() {
return mMessage;