请求错误时 ApiException的handleException方法有问题
1335987402 opened this issue · comments
魔鬼 commented
if (!apiResult.isSuccess()) {
Log.e("----------------","getResultCode="+apiResult.getResultCode());
throw new ServerException(apiResult.getResultMsg(), apiResult.getResultCode());
}
当我请求错误时,没有弹出我的msg 而是在ApiException中的handleException方法里面走的else 为什么没有走else if (e instanceof ServerException) 需要怎么才走这个
魔鬼 commented
我好像发现是不能 给
// catch (Exception e){
// e.printStackTrace();
// }
这个