Throw exception when a required group is missing.