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