code: public void handleUncaughtErrors(Thread thread) {
      final Rollbar rollbar = this;
      thread.setUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
        public void uncaughtException(Thread t, Throwable e) {
          rollbar.log(e, null, null, null, true);
        }
      });
    }
docs: Handle all uncaught errors on {@code thread} with this `Rollbar`.
  @param thread the thread to handle errors on