code: private String createError(String errorMsg, Throwable t) {
  
          StringBuffer msg = new StringBuffer();
          msg.append(errorMsg);
          msg.append("\n");
          msg.append(t.getMessage());
          msg.append("\n");
          msg.append(CmsException.getStackTraceAsString(t));
  
          return createError(msg.toString());
      }
docs: Creates the html code for the given error message and the
  provided Exception.<p>
  
  @param errorMsg the error message to place in the html code
  @param t the exception to add to the error message
  
  @return the html code for the error message