Work on query exception.