Skip to content

Instantly share code, notes, and snippets.

@yrulee
Created November 23, 2016 07:16
Show Gist options
  • Save yrulee/74f103498eb1228870165e701b18373f to your computer and use it in GitHub Desktop.
Save yrulee/74f103498eb1228870165e701b18373f to your computer and use it in GitHub Desktop.
Usage of exception handling.
}, new OnAfterConnectInBackground() {
@Override
public void call(ApiCall.ApiResponse response) {
try {
throw new Exception("This is a test exception");
} catch (Exception e) {
rxHelper.setThrowable(e);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment