RepoIndex: throw the correct exception when the constructor fails

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
api: add comments

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
indexer: add some comments

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>