Created
November 23, 2016 07:16
-
-
Save yrulee/74f103498eb1228870165e701b18373f to your computer and use it in GitHub Desktop.
Usage of exception handling.
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
}, 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