[Exception] Remove query subnamespace

To rationalize the exception namespace, I have removed the query subnamespace & move the `QueryRewriterException` at the root level.