docs: private static String formatCause(Throwable cause) {
      if(cause == null) {
        return "";
      }
      String message = cause.getMessage();
      return "\n" + (message != null ? message : cause.toString());
    }