Created
January 24, 2017 13:42
-
-
Save agustinsivoplas/82b610eb1a775143a2ff0f3ae10f812e to your computer and use it in GitHub Desktop.
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
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