Remars: query callback exception handler