added QueryException