throw exception when entity type is not supported