code: protected void throwThymeleafTokenNotHiddenTypeException(ActionRuntime runtime, String inputType) {
          final ExceptionMessageBuilder br = new ExceptionMessageBuilder();
          br.addNotice("Cannot use the token attribute except hidden type.");
          br.addItem("Advice");
          br.addElement("The la:token attribute should be used at hidden type like this:");
          br.addElement("  (x):");
          br.addElement("    <input type=\"text\" th:token=\"true\"/> // *Bad");
          br.addElement("  (o):");
          br.addElement("    <input type=\"hidden\" th:token=\"true\"/> // Good");
          br.addItem("Action");
          br.addElement(runtime);
          br.addItem("Input Type");
          br.addElement(inputType);
          final String msg = br.buildExceptionMessage();
          throw new ThymeleafTokenNotHiddenTypeException(msg);
      }
docs: //}