Added StructureException to indicate where problems during generation are if there is an index without columns.