Fix capitalization on error messages

Make metadataversion...exceptions subclasses of a common class to make
the check in Main cleaner.