Throw error if can't find class in cache