Show readable error string
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user