Configure the default EventBus instance

Using EventBus.getDefault() is a simple way to get a shared EventBus instance from anywhere in your app. EventBusBuilder also allows to configure this default instance using the method
installDefaultEventBus().

For example, it’s possible to configure the default EventBus instance to rethrow exceptions, which occurred in subscriber methods. But let’s to this only for DEBUG builds, because this will likely crash the app on exceptions:

Note: this can be done only once before the default EventBus instance is used the first time. Subsequent calls to
installDefaultEventBus() will throw an exception. This ensures consistent behavior in your app. Your Application class is a good place to configure the default EventBus instance before its used.