private static IllegalArgumentException formatException(String spec, String errorDetail) {
        return formatException(spec, Optional.of(errorDetail));
    }
@param dimensionOrder if not null, this will be populated with the dimension names in the order they are written
vespajlib/src/main/java/com/yahoo/tensor/TensorTypeParser.java