code: public String buildErrorMessages() {
  
          StringBuffer result = new StringBuffer(8);
          String errorMessages = getErrorMessagesString();
          if (!"".equals(errorMessages)) {
              result.append(dialogBlock(HTML_START, key(Messages.GUI_PERMISSION_ERROR_0), true));
              result.append("<font color='red'>").append(errorMessages).append("</font>");
              result.append(dialogBlockEnd());
          }
          return result.toString();
      }
docs: Returns the error messages if something went wrong.<p>
  
  @return all error messages