Back to project page android-javarx-example.
The source code is released under:
Apache License
If you think the Android project android-javarx-example listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.bnsantos.movies.services; /* ww w. j a v a2 s . co m*/ import retrofit.ErrorHandler; import retrofit.RetrofitError; import retrofit.client.Response; /** * Created by bruno on 17/11/14. */ public class RestErrorHandler implements ErrorHandler { @Override public Throwable handleError(RetrofitError cause) { Response r = cause.getResponse(); if (r != null && r.getStatus() == 401) { return cause; } return cause; } }