public long getUncaughtExceptionsCount() {
    synchronized (dispatchLock) {
      return uncaughtExceptionsCount;
    }
  }
Returns the number of uncaught exceptions that occurred in threads in this thread group.
geode-core/src/main/java/org/apache/geode/internal/logging/LoggingThreadGroup.java