This could just be `cls.DoesNotExist`, so that it's not overly general.