Skip to content

Instantly share code, notes, and snippets.

@Pacane
Created February 17, 2016 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pacane/67ef96101287d09d86d0 to your computer and use it in GitHub Desktop.
Save Pacane/67ef96101287d09d86d0 to your computer and use it in GitHub Desktop.
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