Should not catch exceptions because it will hide the reason why the query fails.