BakerJQ / RxRetroHttp

RxJava2 + Retrofit2 http request lib, supports multiple api result data structures and multiple urls. Http请求库,支持同时存在多种返回格式和多个base url

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

请求错误时 ApiException的handleException方法有问题

1335987402 opened this issue · comments

if (!apiResult.isSuccess()) {
Log.e("----------------","getResultCode="+apiResult.getResultCode());
throw new ServerException(apiResult.getResultMsg(), apiResult.getResultCode());
}
当我请求错误时,没有弹出我的msg 而是在ApiException中的handleException方法里面走的else 为什么没有走else if (e instanceof ServerException) 需要怎么才走这个

我好像发现是不能 给
// catch (Exception e){
// e.printStackTrace();
// }
这个