问题
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