code: public static XMLStreamException invalidAttributeValue(final XMLExtendedStreamReader reader, final int index) {
          final XMLStreamException ex = ControllerLogger.ROOT_LOGGER.invalidAttributeValue(reader.getAttributeValue(index), reader.getAttributeName(index), reader.getLocation());
  
          return new XMLStreamValidationException(ex.getMessage(),
                                                  ValidationError.from(ex, ErrorType.INVALID_ATTRIBUTE_VALUE)
                                                          .element(reader.getName())
                                                          .attribute(reader.getAttributeName(index))
                                                          .attributeValue(reader.getAttributeValue(index)),
                                                  ex);
      }
docs: Get an exception reporting an invalid XML attribute value.
  @param reader the stream reader
  @param index the attribute index
  @return the exception