code: public static String stackTraceText(@NotNull Throwable t) {
  		StringBuilderWriter stringWriter = new StringBuilderWriter();
  		t.printStackTrace(new PrintWriter(stringWriter)); // NOSONAR
  		return stringWriter.toString();
  	}
docs: 将StackTrace[]转换为String, 供Logger或e.printStackTrace()外的其他地方使用.
  
  为了使用StringBuilderWriter，没有用Throwables#getStackTraceAsString(Throwable)