an error is thrown if `QueryInterface` is not found