private static String toStackTrace(Throwable throwable) {
    StringWriter sw = new StringWriter();
    throwable.printStackTrace(new PrintWriter(sw, true));
    return sw.toString();
  }
Returns whether or not an exception occurred while invoking the method
geode-dunit/src/main/java/org/apache/geode/test/dunit/internal/MethodInvokerResult.java