문제

I configured the RestErrorHandler in my RestClient: restClient.setRestErrorHandler(restClientErrorHandler);

But it's not called.

I debugged the code and I see in the generated RestClient_ class that restTemplate.exchange is throwing an exception, but the try catch that calls my RestErrorHandler is being generated for response.getBody() and not the entire method.

Is this a bug in Androidannotations or am I doing something wrong?

I'm using my Androidannotations RestClient inside a Robo Spice request. Thanks!

도움이 되었습니까?

해결책

This is an AA issue which has just been fixed today :) You may use the SNAPSHOT until we release a new version.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top