Added query method exception