@Deprecated
  public Throwable getException() {
    try {
      checkIsDone("Exception status not available while thread is alive.");
    } catch (IllegalStateException illegalStateException) {
      throw new AssertionError(illegalStateException);
    }

    if (resultThrowable.get() instanceof RMIException) {
      return resultThrowable.get().getCause();
    }

    return resultThrowable.get();
  }
Returns the exception that was thrown during this async method invocation.

@return he exception that was thrown during this async method invocation.
@throws AssertionError if this {@code AsyncInvocation} is not done.

@deprecated Please use {@link #await()} or {@link #get()} which will throw any underlying
            exception.
geode-dunit/src/main/java/org/apache/geode/test/dunit/AsyncInvocation.java