privatization of error within statement handle