throw an exception when a domain class doesn't have a repository interface.