code: public static void attachExceptionHandler() {
      UncaughtExceptionHandler oldHandler = Thread.getDefaultUncaughtExceptionHandler();
      if (!(oldHandler instanceof RaygunUncaughtExceptionHandler)) {
        RaygunClient.handler = new RaygunUncaughtExceptionHandler(oldHandler);
        Thread.setDefaultUncaughtExceptionHandler(RaygunClient.handler);
      }
    }
docs: Attaches a pre-built Raygun exception handler to the thread's DefaultUncaughtExceptionHandler.
  This automatically sends any exceptions that reaches it to the Raygun API.