Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Error handling response
@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