Add @throws to QueryInterface interface

Change-Id: I8caf8db70dbd4ab82b651767f7780aa6444526f3
Merge "Add @throws to QueryInterface interface"