How do I handle response errors using with Retrofit and RxJava/RxAndroid?
问题 I am having trouble working out how to handle a response error with retrofit and RxAndroid. onError() gets called if there is a network error or the like but I need to be able to get the response to check if there was an authentication error. Instead what I get is a token with a null String and I can't find out why. What is the best way to go about this? This is my RxAndroid call at the moment. Client.getInstance().getService() .getToken(usernameET.getText().toString(), passwordET.getText()