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