Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
public abstract class RestCallbackImpl<T> implements RestCallback<T> {
private Response response;
@Override
public void setResponse(Response response) {
this.response = response;
}
@Override
public void onFailure(Throwable throwable) {
onError(response);
}
public void onError(Response response) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment