code: public String getStackTraceInfo(Throwable aThrowable) {
          final Writer localWriter = new StringWriter();
          final PrintWriter printWriter = new PrintWriter(localWriter);
          aThrowable.printStackTrace(printWriter);
          return localWriter.toString();
      }
docs: Used to return StackTrace of an Exception as String.
  
  @param aThrowable
  @return StackTrace as String