Skip to content

Commit f4226e3

Browse files
Rain0413Rain0413
authored andcommitted
修复请求错误返回时异常处理bug
1 parent 1687623 commit f4226e3

32 files changed

+10
-13
lines changed

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/java/rain/coder/okhttputils/BaseActivity.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
import org.json.JSONException;
99

10-
import java.io.IOException;
11-
1210
import rain.coder.myokhttp.OkHttpUtils;
1311

1412
/**
@@ -85,7 +83,7 @@ public void onProgress(long currentBytes, long totalBytes) {
8583
}
8684

8785
@Override
88-
public void onErrorHttpResult(int command, int ErrorCode, Object response) throws IOException {
86+
public void onErrorHttpResult(int command, int ErrorCode, Object response) throws JSONException {
8987
showError();
9088
}
9189

1.07 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)