exceptions handling in paged query