code: public static String getHistory(final Throwable th) {
          VariablePrinter printer = new VariablePrinter();
          printHistory(th, printer);
          return printer.getMessages();
      }
docs: Generates a human readable Exception cause chain of the given Exception as String representation.
  
  @param th the Throwable to process the StackTrace.
  @return A History description as String.