Skip to content

Instantly share code, notes, and snippets.

@agustinsivoplas
Created January 24, 2017 13:42
Show Gist options
  • Save agustinsivoplas/82b610eb1a775143a2ff0f3ae10f812e to your computer and use it in GitHub Desktop.
Save agustinsivoplas/82b610eb1a775143a2ff0f3ae10f812e to your computer and use it in GitHub Desktop.
public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
if (BuildConfig.DEBUG) {
RxJavaPlugins.getInstance().registerErrorHandler(new RxJavaErrorHandler() {
@Override
public void handleError(Throwable e) {
Log.e("UnhandledError", e.getMessage(), e);
}
});
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment