throw error if you try to retreive a factory that doesn't exist in the registry