Created
January 30, 2017 18:57
-
-
Save feresr/9f6be549bae99d6d26a5de769a0f7b2c to your computer and use it in GitHub Desktop.
Error handling response
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override public void onNext(DataResponse response) { | |
if (response.isSuccessful()) { | |
displayData(response.getData()); | |
} else { | |
showError(response.getError()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment