adding Exceptions and enhance Siddhi Query Writer