public Throwable getRootCause() {
    if (getCause() == null) {
      return null;
    }
    Throwable root = getCause();
    while (root != null) {
      if (root.getCause() == null) {
        break;
      } else {
        root = root.getCause();
      }
    }
    return root;
  }
Returns the root cause of this <code>GemFireCheckedException</code> or <code>null</code> if the
cause is nonexistent or unknown.

@return the root cause of this <code>GemFireCheckedException</code>
geode-core/src/main/java/org/apache/geode/GemFireCheckedException.java