code: public void addInvalidAttributeError(final String type) throws ValidationException
      {
          addError(StringFormatter.format(MessageConstants.MESSAGES.attributeIsInvalidForType(), type));
      }
docs: Calls {@link #addError(String)} with a message that indicates
  that the specified Node or Shape type does not have the attribute
  that is on the context stack.
  
  @throws ValidationException