public static void checkFailure() throws InternalGemFireError, Error {
    if (failure == null) {
      return;
    }
    notifyWatchDog();
    throwFailure();
  }
Utility function to check for failures. If a failure is detected, this methods throws an
AssertionFailure.

@see #initiateFailure(Error)
@throws InternalGemFireError if the system has been corrupted
@throws Error if the system has been corrupted and a thread-specific AssertionError cannot be
        allocated
geode-core/src/main/java/org/apache/geode/SystemFailure.java