Retrofit get conversion error object

南笙酒味 提交于 2019-12-12 15:08:51

问题


I'm using Retrofit 1.9. I have a custom RetrofitErrorHandler extending ErrorHandler. I'm overriding handleError(RetrofitError cause) and I use cause.getKind() to find CONVERSION error.

Is there a way to find which object failed to be unserialized?

Example : I call the server to retrieve my user into a User POJO, but there is a conversion Error. I'd like to know that the conversion error is due to User.

来源:https://stackoverflow.com/questions/34896624/retrofit-get-conversion-error-object

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!