Skip to content

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

@1335987402

Description

@1335987402

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions