code: private String getStackTraceHtml(Throwable cause) {
          StringBuilder stackTraceBuilder = new StringBuilder();
          stackTraceBuilder.append(cause.getClass().getName())
                          .append(": ")
                          .append(cause.getMessage())
                          .append("\n ");
          for (int i = 0; i < cause.getStackTrace().length; i++) {
              stackTraceBuilder.append("\n\t at ");
              stackTraceBuilder.append(cause.getStackTrace()[i]);
          }
          
          return "<tr><td colspan=\"2\">" +
          		"<div class=\"error-detail\"><pre>" + stackTraceBuilder.toString() + 
          		"</pre>" + getCodeSnippetHtml(cause) + "</div></td></tr>";
      }
docs: Construct HTML code snippet for stack trace information.
  @param cause the causing error.
  @return