Raise exception if version does not exist