Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

拦截器主动抛出异常为何还会执行后续的response.getResult()操作? #179

Open
jidaojiuyou opened this issue Dec 25, 2023 · 0 comments

Comments

@jidaojiuyou
Copy link

image
此处handleError的时候会出来响应码不为200的,并包装成网络错误
image
某个拦截器的onError方法主动抛出了自定义异常,会被最初的handleSyncWithException的catch (Throwable th)拦截。
此时为何又要去response.getResult()?
image
image
如果getResult一般会抛出数据转换异常,这样导致自定义拦截器中抛出的自定义异常丢失。
image
image
image
这个如何解决?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant